Skip to content

Commit

Permalink
fix: tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne de Montalivet committed Jan 3, 2024
1 parent 5b7dd0f commit 9bf700c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,29 @@ jobs:
CONDA_ENV: 'environment.yml'
strategy:
matrix:
python-version: ["3.9", "3.11"]
os: [ubuntu-latest, windows-latest]
python-version: ["3.9"]
os: [ubuntu-latest, windows-latest]

name: tests_python-${{ matrix.python-version }}
name: tests_python-${{ matrix.python-version }}-${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
lfs: true
- 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
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
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}


0 comments on commit 9bf700c

Please sign in to comment.