Skip to content

Commit 0a0915a

Browse files
committed
chore(ci): Install Python without conda if we do not need it
1 parent 35a1031 commit 0a0915a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-test-deploy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,21 @@ jobs:
7070
run: |
7171
git config --global user.email "bids.maintenance@gmail.com"
7272
git config --global user.name "bids-maintenance"
73-
- name: Set up Python ${{ matrix.python-version }}
73+
74+
- name: Set up Python ${{ matrix.python-version }} via conda
7475
uses: conda-incubator/setup-miniconda@v3
76+
if: matrix.os == 'ubuntu-latest'
7577
with:
7678
auto-update-conda: true
7779
python-version: ${{ matrix.python-version }}
7880

81+
- name: Set up Python ${{ matrix.python-version }}
82+
uses: actions/setup-python@v5
83+
if: matrix.os != 'ubuntu-latest'
84+
with:
85+
python-version: ${{ matrix.python-version }}
86+
allow-prereleases: true
87+
7988
- name: Install git-annex ubuntu
8089
if: matrix.os == 'ubuntu-latest'
8190
run: conda install -c conda-forge git-annex

0 commit comments

Comments
 (0)