-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (34 loc) · 915 Bytes
/
test.yaml
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
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 5 * * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
pint-version:
# Force specific version of pint
- "==0.17"
- "==0.18"
- "==0.19.1"
# No change, i.e. latest
- ""
name: pint${{ matrix.pint-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install and test with pytest
run: |
pip install numpy pytest pytest-cov setuptools-scm
pip install --editable .
pip install pint${{ matrix.pint-version }}
pytest -rA --verbose --color=yes --cov=iam_units --cov-report=xml
- name: Upload test coverage to Codecov.io
uses: codecov/codecov-action@v2