-
Notifications
You must be signed in to change notification settings - Fork 111
72 lines (60 loc) · 1.75 KB
/
test-bids-examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: test-bids-examples
on:
push:
branches: ['*']
pull_request:
branches: ['*']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
bids-examples-branch: [master]
runs-on: ${{ matrix.platform }}
env:
TZ: Europe/Berlin
FORCE_COLOR: 1
steps:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Upgrade npm
run: npm install --global npm
- name: Install bids-validator
run: |
npm install
npm link ./bids-validator
echo "./node_modules/.bin" >> $GITHUB_PATH
- name: Get bids-examples data
run: |
git clone --depth 1 https://github.com/bids-standard/bids-examples
- name: Display versions and environment information
run: |
echo $TZ
export PATH="../node_modules/.bin:$PATH"
date
echo "npm"; npm --version
echo "node"; node --version
echo "bids-validator"; bids-validator --version
which bids-validator
ls -a $(which bids-validator)
- name: Ignore examples not supported by legacy validator
run: |
for DS in bids-examples/mrs_* bids-examples/dwi_deriv; do
touch $DS/.SKIP_VALIDATION
done
- name: Validate all BIDS datasets using bids-validator
run: |
export PATH="../node_modules/.bin:$PATH"
cat ./run_tests.sh
bash ./run_tests.sh
shell: bash
working-directory: ./bids-examples