-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.09 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 }}