Skip to content

WIP: Fix dockerfile #73

WIP: Fix dockerfile

WIP: Fix dockerfile #73

Workflow file for this run

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