repo: add badges in readme #12
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: [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 }} | |