MAINT: Overwrite when possible #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'tests' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
# PIP-pre + non-default stim channel + log level info | |
job: | |
name: 'pytest' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -e {0} | |
env: | |
DISPLAY: ':99.0' | |
MNE_LOGGING_LEVEL: 'info' | |
MNE_STIM_CHANNEL: 'STI101' | |
OPENBLAS_NUM_THREADS: '1' | |
PYTHONUNBUFFERED: '1' | |
PYTHON_VERSION: '3.10' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
name: 'Setup python' | |
- run: | | |
pip install --upgrade --only-binary=":all:" pip setuptools wheel | |
pip install --upgrade --only-binary=":all:" numpy scipy matplotlib h5io | |
pip install --upgrade pyyaml patsy pytest pytest-cov codecov flake8 pydocstyle numpydoc git+https://github.com/mne-tools/mne-python@main | |
name: Install | |
- run: make flake | |
- run: pytest mnefun | |
- uses: codecov/codecov-action@v4 | |
if: success() | |
name: 'Upload coverage to CodeCov' |