Skip to content

tests: github tests worflow + to_mne and trc tests #3

tests: github tests worflow + to_mne and trc tests

tests: github tests worflow + to_mne and trc tests #3

Workflow file for this run

name: tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
tests:
runs-on: ${{ matrix.os }}
env:
CONDA_ENV: 'environment.yml'
strategy:
matrix:
python-version: ["3.9", "3.11"]
os: [ubuntu-latest, windows-latest]

Check failure on line 19 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 19, Col: 7): Unexpected value 'os'
name: tests_python-${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: 'mmio'
python-version: ${{ matrix.python-version }}
environment-file: ${{ env.CONDA_ENV }}
- name: Install extra dependencies
shell: bash -el {0}
run: poetry install --with dev
- name: Test with pytest
shell: bash -el {0}
run: |
pytest micromed_io --cov=micromed_io --cov-report=xml --doctest-modules tests/
- name: Upload coverage stats
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml