Skip to content

Commit 53e7c8c

Browse files
committed
set python version correctly
use bash -el {0} so conda is activated
1 parent 9dbc84a commit 53e7c8c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: conda-incubator/setup-miniconda@v3
4040
with:
4141
environment-file: environments/eeg-expy-full.yml
42-
auto-activate-base: true
42+
auto-activate-base: false
4343
python-version: ${{ matrix.python_version }}
4444
activate-environment: eeg-expy-full
4545
channels: conda-forge
@@ -53,7 +53,10 @@ jobs:
5353
conda env remove -n eeg-expy-full --yes
5454
5555
# Create osx-64 platform with audio support
56-
conda env create -v --platform osx-64 -f environments/eeg-expy-full.yml python=${{ matrix.python_version }}
56+
conda env create -v --platform osx-64 -f environments/eeg-expy-full.yml python=${PYTHON_VERSION}
57+
env:
58+
PYTHON_VERSION: ${{ matrix.python_version }}
59+
5760

5861
- name: Run eegnb install test
5962
run: |
@@ -75,6 +78,9 @@ jobs:
7578
typecheck:
7679
name: typecheck (${{ matrix.os }}, py-${{ matrix.python_version }})
7780
runs-on: ${{ matrix.os }}
81+
defaults:
82+
run:
83+
shell: bash -el {0}
7884
strategy:
7985
fail-fast: false
8086
matrix:
@@ -83,15 +89,11 @@ jobs:
8389

8490
steps:
8591
- uses: actions/checkout@v2
86-
- name: Set up Python
87-
uses: actions/setup-python@v1
88-
with:
89-
python-version: ${{ matrix.python_version }}
9092
- name: Install conda
9193
uses: conda-incubator/setup-miniconda@v3
9294
with:
9395
environment-file: environments/eeg-expy-full.yml
94-
auto-activate-base: true
96+
auto-activate-base: false
9597
python-version: ${{ matrix.python_version }}
9698
activate-environment: eeg-expy-full
9799
channels: conda-forge

0 commit comments

Comments
 (0)