-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (60 loc) · 1.86 KB
/
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
name: 'Tests'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on: # yamllint disable-line rule:truthy
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: "0 4 * * *"
jobs:
pytest:
name: '${{ matrix.os }} / ${{ matrix.kind }} / ${{ matrix.python }}'
continue-on-error: true
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
env:
PYTHON_VERSION: '${{ matrix.python }}'
strategy:
matrix:
include:
- os: ubuntu-latest
python: '3.11'
kind: 'dev'
- os: ubuntu-latest
python: '3.9'
kind: 'stable'
- os: macos-latest
python: '3.8'
kind: 'stable'
- os: windows-latest
python: '3.10'
kind: 'stable'
steps:
- uses: actions/checkout@v4
- uses: pyvista/setup-headless-display-action@main
- uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: '1.3.1-0'
environment-file: environment.yml
init-shell: >-
bash
powershell
post-cleanup: 'all'
- run: python -m pip install --progress-bar off -e .[test] qtpy nibabel defusedxml
- run: python -m pip install --upgrade git+https://github.com/mne-tools/mne-python.git@main
if: matrix.kind == 'dev'
- run: mne sys_info -p
- run: python -c "from mayavi import mlab; mlab.test_plot3d()"
- run: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
- run: pytest --tb=short --cov=mne_kit_gui --cov-report=xml --cov-report=html -vvv mne_kit_gui
- uses: codecov/codecov-action@v4
with:
token: ebcd818a-7a71-470d-b667-7cd9c3003c7d
if: success() || failure()