-
-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (41 loc) · 1.13 KB
/
build_and_test.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
43
44
name: Build and test [Python 3.9]
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install
run: make install
- name: Conda info and list
shell: bash -el {0}
# Don't run this on Windows, as it fails
if: matrix.os != 'windows-latest'
run: |
conda info
conda list
- name: Test
working-directory: ./
run: |
pytest -m 'not local' --cov=./ --cov-report=xml --maxfail=0
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true