From 94041b4c541fc6252f8fb18a37c21cd2092e7b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20H=C3=B6chenberger?= Date: Mon, 20 Dec 2021 15:32:28 +0100 Subject: [PATCH] Rework CI test matrix Fixes #933 --- .github/workflows/unit_tests.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index cb989ec3f..5d068c998 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -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 }} @@ -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 }} @@ -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 @@ -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+ @@ -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