-
Notifications
You must be signed in to change notification settings - Fork 185
55 lines (49 loc) · 1.37 KB
/
test-braindecode.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
name: Test-braindecode
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
test:
name: dev ${{ matrix.os }}, py-${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
python-version: ["3.12"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
# Cache MNE Data
- name: Create/Restore MNE Data Cache
id: cache-mne_data
uses: actions/cache@v4
with:
path: ~/mne_data
key: ${{ runner.os }}-mne-data-v1
restore-keys: |
${{ runner.os }}-mne-data-v1
- name: Checkout Braindecode
uses: actions/checkout@v4
with:
repository: braindecode/braindecode
path: braindecode
- name: Install moabb, braindecode and run tests
run: |
uv pip install -e .
cd braindecode && uv pip install -e .[tests]
echo "Running tests"
uv pip install pytest-xdist
pytest test/ --quiet -n auto