fix: tests workflow #7
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 | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
env: | |
CONDA_ENV: 'environment.yml' | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
os: [windows-latest] | |
name: tests_python-${{ matrix.python-version }}-${{ matrix.os }} | |
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 && conda install -c conda-forge liblsl | |
- 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 | |