Skip to content

Commit

Permalink
Rework CI test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Dec 20, 2021
1 parent 8a29504 commit 94041b4
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
python-version: [3.10]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, 3.10]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -105,8 +105,15 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9]
bids-validator: [main, stable]
python-version: [3.7, 3.8, 3.9, 3.10]
mne-version: [stable]
bids-validator-version: [stable]

# Only test devel versions with Python 3.10
include:
- python-version: 3.10
mne-version: main
bids-validator-version: main

env:
TZ: Europe/Berlin
Expand Down Expand Up @@ -140,23 +147,23 @@ jobs:
pip install -r test_requirements.txt
- name: Install MNE (stable)
if: "matrix.os != 'ubuntu-latest'"
if: "matrix.mne-version == 'stable'"
run: |
git clone --depth 1 https://github.com/mne-tools/mne-python.git -b maint/0.24
pip install --no-deps -e ./mne-python
- name: Install MNE (main)
if: "matrix.os == 'ubuntu-latest'"
if: "matrix.mne-version == 'main'"
run: |
git clone --depth 1 https://github.com/mne-tools/mne-python.git -b main
pip install --no-deps -e ./mne-python
- name: Install BIDS validator (stable)
if: "matrix.bids-validator == 'stable'"
if: "matrix.bids-validator-version == 'stable'"
run: npm install -g bids-validator

- name: Install BIDS validator (main)
if: "matrix.bids-validator == 'main'"
if: "matrix.bids-validator-version == 'main'"
run: |
pushd ..
# Get npm 7+
Expand Down Expand Up @@ -192,7 +199,7 @@ jobs:
shell: bash

- name: Upload coverage stats to codecov
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && matrix.bids-validator == 'main' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' && matrix.bids-validator-version == 'main' }}
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml

0 comments on commit 94041b4

Please sign in to comment.