Skip to content

Commit

Permalink
Matrix "test" workflow for pint versions pre-/post 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Nov 11, 2021
1 parent 1bfc651 commit 2224ff0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
pint-version:
# Force specific version of pint
- "==0.17"
- "==0.18"
# No change, i.e. latest
- ""

name: pint${{ matrix.pint-version }}

steps:
- uses: actions/checkout@v2

Expand All @@ -21,6 +33,7 @@ jobs:
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
Expand Down

0 comments on commit 2224ff0

Please sign in to comment.