-
Notifications
You must be signed in to change notification settings - Fork 35
40 lines (31 loc) · 1.05 KB
/
Docker_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
name: Docker Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.type }}
cancel-in-progress: true
jobs:
latest:
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 }}
- name: Build docker image
run: docker-compose build worker
- name: System info
run: docker run mne-tools/mne-nirs python -c "import mne; mne.sys_info()"
- name: MNE-NIRS info
run: docker run mne-tools/mne-nirs python -c "import mne_nirs; print(mne_nirs.__version__)"
- name: Run visualisation test
run: docker run -v `pwd`:/opt/app/examples mne-tools/mne-nirs ipython /opt/app/examples/.github/workflows/docker_tests.py