Build(deps): Bump mamba-org/setup-micromamba from 1 to 2 in the actions group #69
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: | |
- '*' | |
jobs: | |
pytest: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
kind: [pip] | |
python: ['3.12'] | |
include: | |
- os: macos-latest | |
kind: conda | |
python: '3.10' | |
env: | |
CI_OS_NAME: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
if: ${{ matrix.kind == 'pip' }} | |
- uses: mamba-org/setup-micromamba@v2 | |
with: | |
environment-file: environment.yml | |
create-args: python=${{ matrix.python }} | |
if: ${{ matrix.kind == 'conda' }} | |
- run: git clone --single-branch -b main https://github.com/mne-tools/mne-python.git | |
name: Clone MNE-Python | |
- run: | | |
source ./mne-python/tools/get_minimal_commands.sh | |
neuromag2ft --version | |
name: Install neuromag2ft | |
if: ${{ startswith(matrix.os, 'ubuntu') }} | |
- run: | | |
wget -q https://github.com/sccn/liblsl/releases/download/v1.16.2/liblsl-1.16.2-jammy_amd64.deb | |
sudo apt install ./liblsl-*.deb | |
if: ${{ startswith(matrix.os, 'ubuntu') }} | |
name: Install liblsl | |
- run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install -r requirements.txt -ve . -e ./mne-python | |
name: Install dependencies and MNE-Realtime | |
- run: mne sys_info | |
- run: ./tools/get_testing_version.sh | |
working-directory: ./mne-python | |
- run: python -c "import mne; print(mne.datasets.testing.data_path(verbose=True))" | |
name: Get test data | |
- uses: actions/cache@v4 | |
with: | |
key: ${{ env.TESTING_VERSION }} | |
path: ~/mne_data | |
- run: pytest -vv mne_realtime | |
- uses: codecov/codecov-action@v4 | |
if: success() || failure() | |
name: 'Upload coverage to CodeCov' |