-
Notifications
You must be signed in to change notification settings - Fork 34
53 lines (52 loc) · 1.61 KB
/
linux_conda.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
name: 'linux / conda'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
# Linux
job:
timeout-minutes: 90
name: 'py3.10'
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -el {0}
env:
MNE_LOGGING_LEVEL: 'warning'
MKL_NUM_THREADS: '1'
PYTHONUNBUFFERED: '1'
PYTHON_VERSION: '3.10'
steps:
- uses: actions/checkout@v4
- uses: pyvista/setup-headless-display-action@main
with:
qt: true
pyvista: false
- uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
create-args: >- # beware the >- instead of |, we don't split on newlines but on spaces
python=${{ env.PYTHON_VERSION }}
- run: |
curl https://raw.githubusercontent.com/mne-tools/mne-python/main/tools/get_minimal_commands.sh -o get_minimal_commands.sh
chmod +x get_minimal_commands.sh
source ./get_minimal_commands.sh
pip install .[test]
name: 'Install dependencies'
- run: pip install git+https://github.com/mne-tools/mne-python@main
- run: pip install -e .
- run: |
which mne
mne sys_info -pd
python -c "import numpy; numpy.show_config()"
name: 'Show infos'
- name: Run pytest
run: python -m pytest . --cov=mne_connectivity --cov-report=xml --cov-config=pyproject.toml --verbose --ignore mne-python
- uses: codecov/codecov-action@v5