-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (44 loc) · 1.23 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
name: 'tests'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
# PIP-pre + non-default stim channel + log level info
job:
name: 'pytest'
runs-on: ubuntu-latest
defaults:
run:
shell: bash -e {0}
env:
DISPLAY: ':99.0'
MNE_LOGGING_LEVEL: 'info'
MNE_STIM_CHANNEL: 'STI101'
OPENBLAS_NUM_THREADS: '1'
PYTHONUNBUFFERED: '1'
PYTHON_VERSION: '3.10'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
name: 'Setup python'
- run: |
pip install --upgrade --only-binary=":all:" pip setuptools wheel
pip install --upgrade --only-binary=":all:" numpy scipy matplotlib h5io
pip install --upgrade pyyaml patsy pytest pytest-cov codecov flake8 pydocstyle numpydoc git+https://github.com/mne-tools/mne-python@main
name: Install
- run: make flake
- run: pytest mnefun
- uses: codecov/codecov-action@v4
if: success()
name: 'Upload coverage to CodeCov'