forked from hed-standard/hed-python
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.57 KB
/
spec_tests.yaml
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
name: Spec_tests
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
python-version: [3.9]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout hed-python
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade --upgrade-strategy eager pip
pip install -r requirements.txt
- name: Spec Error Tests
id: spec_error_tests
continue-on-error: true
run: |
echo "::group::Spec Test Results"
python -m unittest spec_tests/test_errors.py
echo "::endgroup::"
- name: Bids Validation Test
id: bids_validation_test
continue-on-error: true
run: |
echo "::group::Bids Results"
python -m unittest spec_tests/validate_bids.py
echo "::endgroup::"
- name: Hed Cache Test
env:
HED_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: hed_cache_test
continue-on-error: true
run: |
python -m unittest spec_tests/test_hed_cache.py
- name: Fail if Tests Failed
if: steps.spec_error_tests.outcome == 'failure' || steps.bids_validation_test.outcome == 'failure' || steps.hed_cache_test.outcome == 'failure'
run: exit 1