Skip to content

repo: v0.4.2

repo: v0.4.2 #19

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"]
os: [ubuntu-latest, windows-latest]
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 && 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 reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}