-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (32 loc) · 983 Bytes
/
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
name: tests
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
environment-file: ci/environment.yml
activate-environment: unseen-test
auto-activate-base: false
- name: Install
shell: bash -l {0}
run: python -m pip install -e .
- name: List installed packages
shell: bash -l {0}
run: conda list
- name: Run tests
shell: bash -l {0}
run: python -m pytest unseen
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}