forked from mne-tools/mne-bids-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (73 loc) · 2.31 KB
/
run-tests.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
73
74
75
name: Checks
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on: [push, pull_request]
jobs:
check-doc:
name: Doc consistency and codespell
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install --upgrade pip
- run: pip install -ve .[tests] codespell tomli
- run: make codespell-error
- run: pytest mne_bids_pipeline -m "not dataset_test"
- uses: codecov/codecov-action@v4
if: success()
name: 'Upload coverage to CodeCov'
caching:
name: 'Caching on ${{ matrix.os }}'
timeout-minutes: 30
continue-on-error: true
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
env:
MNE_BIDS_PIPELINE_LEGACY_WINDOWS: "false"
PYTHONIOENCODING: 'utf8' # for Windows
steps:
- uses: actions/checkout@v4
- uses: pyvista/setup-headless-display-action@main
with:
qt: true
pyvista: false
- uses: actions/setup-python@v5
with:
python-version: "3.11" # no "multidict" wheels on 3.12 yet
- run: pip install -ve .[tests]
- uses: actions/cache@v4
with:
key: ds001971
path: ~/mne_data/ds001971
id: ds001971-cache
- run: python -m mne_bids_pipeline._download ds001971
if: steps.ds001971-cache.outputs.cache-hit != 'true'
- run: pytest --cov-append -k ds001971 mne_bids_pipeline/
- run: pytest --cov-append -k ds001971 mne_bids_pipeline/ # uses "hash" method
timeout-minutes: 1
- uses: actions/cache@v4
with:
key: ds003392
path: ~/mne_data/ds003392
id: ds003392-cache
- run: python -m mne_bids_pipeline._download ds003392
if: steps.ds003392-cache.outputs.cache-hit != 'true'
- run: pytest --cov-append -k ds003392 mne_bids_pipeline/
- run: pytest --cov-append -k ds003392 mne_bids_pipeline/ # uses "mtime" method
timeout-minutes: 1
- uses: codecov/codecov-action@v4
if: success()