Skip to content

Commit

Permalink
chore(ci): Use draft schema, shield pheno004 from older validators
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Feb 13, 2025
1 parent 31c5ae7 commit 0a6fce0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/validate_datasets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,16 @@ jobs:
shell: bash

- name: Skip legacy validation for post-legacy datasets
run: for DS in mrs_* dwi_deriv; do touch $DS/.SKIP_VALIDATION; done
run: for DS in mrs_* dwi_deriv pheno004; do touch $DS/.SKIP_VALIDATION; done
if: matrix.bids-validator == 'legacy'
shell: bash

- name: Skip stable validation for datasets with unreleased features
- name: Skip stable validation for datasets with unreleased validator features
run: for DS in pheno004; do touch $DS/.SKIP_VALIDATION; done
if: matrix.bids-validator == 'stable' || matrix.bids-validator == 'main'
shell: bash

- name: Skip main validation for datasets with unreleased spec features
run: for DS in dwi_deriv; do touch $DS/.SKIP_VALIDATION; done
if: matrix.bids-validator != 'dev'
shell: bash
Expand All @@ -111,7 +116,7 @@ jobs:
# Update this URL to the schema.json from PRs to the spec, when needed.
# If this variable is unset, dev will generally track the latest development
# release of https://jsr.io/@bids/schema
run: echo BIDS_SCHEMA=https://bids-specification.readthedocs.io/en/latest/schema.json >> $GITHUB_ENV
run: echo BIDS_SCHEMA=https://bids-specification--2044.org.readthedocs.build/en/2044/schema.json >> $GITHUB_ENV

- name: Validate all BIDS datasets using bids-validator
run: |
Expand Down

0 comments on commit 0a6fce0

Please sign in to comment.