|
21 | 21 | fail-fast: false
|
22 | 22 | matrix:
|
23 | 23 | platform: [ubuntu-latest, macos-latest, windows-latest]
|
24 |
| - bids-validator: [stable, dev, legacy] |
| 24 | + bids-validator: [stable, main, dev, legacy] |
25 | 25 |
|
26 | 26 | runs-on: ${{ matrix.platform }}
|
27 | 27 |
|
@@ -49,14 +49,22 @@ jobs:
|
49 | 49 | deno install -Agf -n bids-validator jsr:@bids/validator
|
50 | 50 | shell: bash
|
51 | 51 |
|
52 |
| - - name: Install BIDS validator (dev) |
53 |
| - if: matrix.bids-validator == 'dev' |
| 52 | + - name: Install BIDS validator (main) |
| 53 | + if: matrix.bids-validator == 'main' |
54 | 54 | run: |
|
55 | 55 | # If unmerged validator PRs are needed for testing, you can use
|
56 | 56 | # https://github.com/<FORK>/bids-validator/raw/<BRANCH>/bids-validator/src/bids-validator.ts
|
57 | 57 | deno install -Agf https://github.com/bids-standard/bids-validator/raw/deno-build/bids-validator.js
|
58 | 58 | shell: bash
|
59 | 59 |
|
| 60 | + - name: Install BIDS validator (dev) |
| 61 | + if: matrix.bids-validator == 'dev' |
| 62 | + run: | |
| 63 | + git clone -b dev https://github.com/bids-standard/bids-validator/ ../bids-validator |
| 64 | + cd ../bids-validator |
| 65 | + deno compile -A -o $HOME/.deno/bin/bids-validator src/bids-validator.ts |
| 66 | + shell: bash |
| 67 | + |
60 | 68 | - name: Install BIDS validator (legacy)
|
61 | 69 | if: "matrix.bids-validator == 'legacy'"
|
62 | 70 | run: |
|
@@ -87,17 +95,26 @@ jobs:
|
87 | 95 | fi
|
88 | 96 | shell: bash
|
89 | 97 |
|
90 |
| - - name: Skip MRS validation for legacy validator |
| 98 | + - name: Skip legacy validation for post-legacy datasets |
91 | 99 | run: for DS in mrs_* dwi_deriv; do touch $DS/.SKIP_VALIDATION; done
|
92 | 100 | if: matrix.bids-validator == 'legacy'
|
93 | 101 | shell: bash
|
94 | 102 |
|
| 103 | + - name: Skip stable validation for datasets with unreleased features |
| 104 | + run: for DS in dwi_deriv; do touch $DS/.SKIP_VALIDATION; done |
| 105 | + if: matrix.bids-validator != 'dev' |
| 106 | + shell: bash |
| 107 | + |
| 108 | + - name: Set BIDS_SCHEMA variable for dev version |
| 109 | + if: matrix.bids-validator == 'dev' |
| 110 | + # When proposing new features, schema changes may be necessary. |
| 111 | + # Update this URL to the schema.json from PRs to the spec, when needed. |
| 112 | + # If this variable is unset, dev will generally track the latest development |
| 113 | + # release of https://jsr.io/@bids/schema |
| 114 | + run: echo BIDS_SCHEMA=https://bids-specification.readthedocs.io/en/latest/schema.json >> $GITHUB_ENV |
| 115 | + |
95 | 116 | - name: Validate all BIDS datasets using bids-validator
|
96 | 117 | run: |
|
97 | 118 | cat ./run_tests.sh
|
98 | 119 | ./run_tests.sh
|
99 | 120 | shell: bash
|
100 |
| - env: |
101 |
| - # When proposing new features, schema changes may be necessary. |
102 |
| - # Update this URL to the schema.json from PRs to the spec, when needed. |
103 |
| - BIDS_SCHEMA: https://bids-specification.readthedocs.io/en/latest/schema.json |
|
0 commit comments