-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: github tests worflow + to_mne and trc tests
- Loading branch information
Etienne de Montalivet
committed
Jan 3, 2024
1 parent
7f91266
commit 5b7dd0f
Showing
5 changed files
with
691 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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", "3.11"] | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
name: tests_python-${{ matrix.python-version }} | ||
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 | ||
- 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 | ||
|
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
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
Oops, something went wrong.