-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (44 loc) · 1.71 KB
/
main.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
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# Base
- name: Build base image
run: docker-compose build base
- name: System info - base image
run: docker run mnetools/mne-python python -c "import mne; mne.sys_info()"
- name: Run base test
run: docker run -v `pwd`:/opt/app/examples mnetools/mne-python python /opt/app/examples/tests/base.py
# Jupyter
- name: Build jupyter image
run: docker-compose build jupyter
- name: System info - jupyter image
run: docker run mnetools/mne-python-jupyter ipython -c "import mne; mne.sys_info()"
- name: Run jupyter test
run: docker run -v `pwd`:/opt/app/examples mnetools/mne-python-jupyter ipython /opt/app/examples/tests/base.py
# Plot
- name: Build plot image
run: docker-compose build plot
- name: System info - plot image
run: docker run mnetools/mne-python-plot python -c "import mne; mne.sys_info()"
- name: Run plotting test
run: docker run -v `pwd`:/opt/app/examples mnetools/mne-python-plot python /opt/app/examples/tests/plot.py