-
Notifications
You must be signed in to change notification settings - Fork 36
55 lines (53 loc) · 1.61 KB
/
main.yml
File metadata and controls
55 lines (53 loc) · 1.61 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
name: Test MNE-Features
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.13" ]
numba: [ "on", "off" ]
include:
- python-version: "3.12"
numba: "on"
- python-version: "3.11"
numba: "on"
- python-version: "3.10"
numba: "on"
defaults:
run:
shell: bash -el {0}
continue-on-error: true
name: python-${{ matrix.python-version }}-numba-${{ matrix.numba }}
steps:
- uses: actions/checkout@v6
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: 'mne-features'
python-version: ${{ matrix.python-version }}
environment-file: 'environment.yml'
name: Install Miniconda and create environment
- if: ${{ matrix.numba == 'off' }}
run: pip uninstall --yes --quiet numba
name: Uninstall numba
- run: pip install --upgrade pytest pytest-cov flake8 check-manifest pytest-sugar
name: Install test utilities
- run: pip install --no-deps -ve .
- run: flake8 --count mne_features
- run: pytest --cov=mne_features --cov-report=xml --verbose -m "not slow" mne_features/tests
- run: check-manifest --ignore doc,mne_features/*/tests
- uses: codecov/codecov-action@v5
with:
token: '1873840c-bd0f-4085-b7da-8b57b680d848'
if: success() || failure()