Skip to content

Commit

Permalink
CI: try schema BIDS validator
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Sep 2, 2024
1 parent 100d594 commit b0f48c0
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ jobs:
# 3.10 / mne-stable / full / validator-stable
# 3.12 / mne-stable / full / validator-stable
#
# 3 additional checks with alternative MNE-Python and BIDS validator versions:
# ubuntu / 3.12 / mne-main / full / validator-main
# ubuntu / 3.10 / mne-prev / full / validator-stable
# ubuntu / 3.12 / mne-stable / minimal / validator-stable
# 4 additional checks with alternative MNE-Python and BIDS validator versions:
# ubuntu / 3.12 / mne-main / full / validator-main --> to test cutting edge of everything
# ubuntu / 3.10 / mne-prev / full / validator-stable --> to test last supported of everything
# ubuntu / 3.12 / mne-stable / minimal / validator-stable --> to test a minimal installation
# ubuntu / 3.12 / mne-stable / full / validator-main-schema --> to test next-gen BIDS validator
timeout-minutes: 60
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -154,19 +155,31 @@ jobs:
mne-version: mne-stable
mne-bids-install: minimal
bids-validator-version: validator-stable

# Test minimal mne-bids install
- os: ubuntu-latest
python-version: "3.12"
mne-version: mne-stable
mne-bids-install: full
bids-validator-version: validator-main-schema

env:
TZ: Europe/Berlin
FORCE_COLOR: true
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
- name: Set up Node.js (validator-stable and validator-main)
if: matrix.bids-validator-version == 'validator-stable' || matrix.bids-validator-version == 'validator-main'
uses: actions/setup-node@v4
with:
node-version: 20

- name: Set up deno (validator-main-schema)
if: matrix.bids-validator-version == 'validator-main-schema'
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -210,6 +223,14 @@ jobs:
npm install -g bids-validator
echo "BIDS_VALIDATOR_BRANCH=stable" >> $GITHUB_ENV
- name: Install BIDS validator (main-schema)
if: matrix.bids-validator-version == 'validator-main-schema'
# If unmerged validator PRs are needed for testing, you can use
# https://github.com/<FORK>/bids-validator/raw/<BRANCH>/bids-validator/src/bids-validator.ts
run: |
deno install -Agf https://github.com/bids-standard/bids-validator/raw/deno-build/bids-validator.js
echo "BIDS_VALIDATOR_BRANCH=main-schema" >> $GITHUB_ENV
- name: Download BIDS validator (main)
if: matrix.bids-validator-version == 'validator-main'
run: |
Expand Down

0 comments on commit b0f48c0

Please sign in to comment.