Skip to content

Merge pull request #93 from larsoner/numba #26

Merge pull request #93 from larsoner/numba

Merge pull request #93 from larsoner/numba #26

Workflow file for this run

name: Testing MNE-Features on Ubuntu 20.04
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
tests:
runs-on: ubuntu-20.04
env:
PYTHON_VERSION: '3.8'
CONDA_ENV: 'environment.yml'
strategy:
matrix:
python-version: [ "3.8" ]
numba: [ "on", "off" ]
continue-on-error: true
name: python-${{ matrix.python-version }}-numba-${{ matrix.numba }}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: 'mne-features'
python-version: ${{ env.PYTHON_VERSION }}
environment-file: ${{ env.CONDA_ENV }}
name: Install Miniconda and create environment
- if: ${{ matrix.numba == 'off' }}
shell: bash -el {0}
run: pip uninstall --yes --quiet numba
name: Uninstall numba
- shell: bash -el {0}
run: pip install --upgrade pytest pytest-cov flake8 check-manifest pytest-sugar
name: Install test utilities
- shell: bash -el {0}
run: python setup.py develop --no-deps
name: Install MNE-Features
- shell: bash -el {0}
run: |
flake8 --count mne_features
pytest --cov=mne_features --cov-report=xml --verbose mne_features/tests
name: Run tests (with coverage)
- shell: bash -el {0}
run: check-manifest --ignore doc,mne_features/*/tests
name: Check manifest
- name: Upload coverage stats
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml