Skip to content

Commit a819d6a

Browse files
committed
chore(ci): Use draft schema, shield pheno004 from older validators
1 parent 31c5ae7 commit a819d6a

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/validate_datasets.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,21 @@ jobs:
9696
shell: bash
9797

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

103-
- name: Skip stable validation for datasets with unreleased features
104-
run: for DS in dwi_deriv; do touch $DS/.SKIP_VALIDATION; done
103+
- name: Skip stable validation for datasets with unreleased validator features
104+
# Replace ${EMPTY} with dataset patterns, when this is needed
105+
# Reset to "for DS in ${EMPTY}; ..." after a validator release
106+
run: for DS in ${EMPTY}; do touch $DS/.SKIP_VALIDATION; done
107+
if: matrix.bids-validator == 'stable'
108+
shell: bash
109+
110+
- name: Skip main validation for datasets with unreleased spec features
111+
# Replace ${EMPTY} with dataset patterns, when this is needed
112+
# Reset to "for DS in ${EMPTY}; ..." after a spec release
113+
run: for DS in dwi_deriv pheno004; do touch $DS/.SKIP_VALIDATION; done
105114
if: matrix.bids-validator != 'dev'
106115
shell: bash
107116

@@ -111,7 +120,7 @@ jobs:
111120
# Update this URL to the schema.json from PRs to the spec, when needed.
112121
# If this variable is unset, dev will generally track the latest development
113122
# release of https://jsr.io/@bids/schema
114-
run: echo BIDS_SCHEMA=https://bids-specification.readthedocs.io/en/latest/schema.json >> $GITHUB_ENV
123+
run: echo BIDS_SCHEMA=https://bids-specification--2044.org.readthedocs.build/en/2044/schema.json >> $GITHUB_ENV
115124

116125
- name: Validate all BIDS datasets using bids-validator
117126
run: |

0 commit comments

Comments
 (0)