Skip to content

FIX: Version

FIX: Version #1721

Workflow file for this run

name: 'tests / linux / conda'
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: "0 13 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.type }}
cancel-in-progress: true
jobs:
# Linux
job:
name: 'py3.10'
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[skip tests]')"
defaults:
run:
shell: bash
env:
CONDA_ENV: 'environment.yml'
DISPLAY: ':99.0'
MNE_LOGGING_LEVEL: 'warning'
MKL_NUM_THREADS: '1'
PYTHONUNBUFFERED: '1'
PYTHON_VERSION: '3.10'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: ./tools/setup_xvfb.sh
name: 'Setup xvfb'
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: 'mne-nirs'
python-version: ${{ env.PYTHON_VERSION }}
environment-file: ${{ env.CONDA_ENV }}
name: 'Setup conda'
- shell: bash -el {0}
run: |
./tools/github_actions_dependencies.sh
source tools/get_minimal_commands.sh
name: 'Install dependencies'
- shell: bash -el {0}
run: ./tools/github_actions_install.sh
name: 'Install MNE'
- shell: bash -el {0}
run: ./tools/github_actions_infos.sh
name: 'Show infos'
- shell: bash -el {0}
run: ./tools/github_actions_download.sh
name: 'Download testing data'
- shell: bash -el {0}
run: ./tools/github_actions_locale.sh
name: 'Print locale'
- shell: bash -el {0}
run: ./tools/github_actions_test.sh
name: 'Run tests'
- uses: codecov/codecov-action@v1
if: success()
name: 'Upload coverage to CodeCov'