forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
117 lines (115 loc) · 3.51 KB
/
linux_conda.yml
File metadata and controls
117 lines (115 loc) · 3.51 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: 'linux / conda'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
cancel-in-progress: true
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
py310:
runs-on: ubuntu-20.04
name: 'linux conda 3.10'
defaults:
run:
shell: bash
env:
CONDA_ENV: 'environment.yml'
DISPLAY: ':99.0'
MNE_LOGGING_LEVEL: 'warning'
MKL_NUM_THREADS: '1'
PYTHONUNBUFFERED: '1'
PYTHON_VERSION: '3.10'
steps:
- uses: actions/checkout@v3
- run: ./tools/setup_xvfb.sh
name: 'Setup xvfb'
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: 'mne'
python-version: ${{ env.PYTHON_VERSION }}
environment-file: ${{ env.CONDA_ENV }}
name: 'Setup conda'
- shell: bash -el {0}
run: |
./tools/github_actions_dependencies.sh
source tools/get_minimal_commands.sh
name: 'Install dependencies'
- shell: bash -el {0}
run: mne_surf2bem --version
name: 'Check minimal commands'
- shell: bash -el {0}
run: ./tools/github_actions_install.sh
name: 'Install MNE'
- shell: bash -el {0}
run: |
QT_QPA_PLATFORM=xcb LIBGL_DEBUG=verbose LD_DEBUG=libs python -c "import pyvistaqt; pyvistaqt.BackgroundPlotter(show=True)"
name: 'Check Qt GL'
- shell: bash -el {0}
run: ./tools/github_actions_infos.sh
name: 'Show infos'
- shell: bash -el {0}
run: ./tools/get_testing_version.sh
name: 'Get testing version'
- uses: actions/cache@v3
with:
key: ${{ env.TESTING_VERSION }}
path: ~/mne_data
name: 'Cache testing data'
- shell: bash -el {0}
run: ./tools/github_actions_download.sh
name: 'Download testing data'
- shell: bash -el {0}
run: ./tools/github_actions_locale.sh
name: 'Print locale'
- shell: bash -el {0}
run: ./tools/github_actions_test.sh
name: 'Run tests'
- uses: codecov/codecov-action@v3
if: success()
name: 'Upload coverage to CodeCov'
notebook:
timeout-minutes: 90
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
env:
CONDA_ENV: 'server_environment.yml'
PYTHON_VERSION: '3.8'
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: 'mne'
python-version: ${{ env.PYTHON_VERSION }}
environment-file: ${{ env.CONDA_ENV }}
name: 'Setup conda'
- shell: bash -el {0}
run: |
pip uninstall -yq mne
pip install --progress-bar off -ve .[test]
name: 'Install dependencies'
- shell: bash -el {0}
run: ./tools/github_actions_infos.sh
name: 'Show infos'
- shell: bash -el {0}
run: ./tools/get_testing_version.sh
name: 'Get testing version'
- uses: actions/cache@v3
with:
key: ${{ env.TESTING_VERSION }}
path: ~/mne_data
name: 'Cache testing data'
- shell: bash -el {0}
run: ./tools/github_actions_download.sh
name: 'Download testing data'
- shell: bash -el {0}
run: pytest --tb=short -m "not pgtest" --cov=mne --cov-report=xml --cov-report=html -vv mne/viz
name: 'Run viz tests'
- uses: codecov/codecov-action@v3
if: success()
name: 'Upload coverage to CodeCov'