Skip to content

Commit

Permalink
CI: Simplify schema validator installation
Browse files Browse the repository at this point in the history
Leave instructions for how to test on other branches of validator and/or
specification.
  • Loading branch information
effigies committed Jul 30, 2024
1 parent 401f4cf commit 7652832
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/validate_datasets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,9 @@ jobs:
- name: Install BIDS validator (master deno build)
if: "matrix.bids-validator == 'master-deno'"
run: |
LOCAL_BIN=$HOME/.local/bin
VALIDATOR=$LOCAL_BIN/bids-validator
mkdir -p $LOCAL_BIN
export PATH="$LOCAL_BIN:$PATH"
echo PATH="$PATH" >> $GITHUB_ENV
echo -e '#!/usr/bin/env'" -S deno run --allow-read --allow-write --allow-env --allow-net --allow-run\nimport 'https://github.com/bids-standard/bids-validator/raw/master/bids-validator/src/bids-validator.ts'" > $VALIDATOR
chmod +x $VALIDATOR
bids-validator --version
# 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
deno install -Agf https://github.com/bids-standard/bids-validator/raw/deno-build/bids-validator.js
shell: bash

- name: Display versions and environment information
Expand Down Expand Up @@ -108,3 +103,7 @@ jobs:
cat ./run_tests.sh
./run_tests.sh
shell: bash
env:
# When proposing new features, schema changes may be necessary.
# Update this URL to the schema.json from PRs to the spec, when needed.
BIDS_SCHEMA: https://bids-specification.readthedocs.io/en/latest/schema.json

0 comments on commit 7652832

Please sign in to comment.