forked from hed-standard/hed-python
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (54 loc) · 1.68 KB
/
spec_tests.yaml
File metadata and controls
65 lines (54 loc) · 1.68 KB
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
name: Spec_tests
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout hed-python
uses: actions/checkout@v6
with:
submodules: true
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Create virtual environment
run: |
uv venv --clear .venv
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
- name: Install dependencies
run: uv pip install -e ".[test]"
- 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/test_bids_datasets.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