Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRG: Rework CI test matrix #934

Merged
merged 12 commits into from
Dec 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 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.10"] # Oldest and newest supported versions
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -105,8 +105,16 @@ 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.10"] # Oldest and newest supported versions
mne-version: [mne-stable]
bids-validator-version: [validator-stable]

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

env:
TZ: Europe/Berlin
Expand Down Expand Up @@ -140,23 +148,23 @@ jobs:
pip install -r test_requirements.txt

- name: Install MNE (stable)
if: "matrix.os != 'ubuntu-latest'"
if: "matrix.mne-version == 'mne-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 == 'mne-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 == 'validator-stable'"
run: npm install -g bids-validator

- name: Install BIDS validator (main)
if: "matrix.bids-validator == 'main'"
if: "matrix.bids-validator-version == 'validator-main'"
run: |
pushd ..
# Get npm 7+
Expand Down Expand Up @@ -192,7 +200,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 == 'validator-main' }}
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ filterwarnings =
ignore:MEG ref channel RMSP did not.*:RuntimeWarning
# These can be deleted in v0.10.
ignore:Function mark_bad_channels is deprecated.*:DeprecationWarning
# This is for Python 3.10+ and MNE <1.0
ignore:The distutils package is deprecated.*:DeprecationWarning

[pydocstyle]
convention = pep257
Expand Down