Skip to content

Test

Test #415

Workflow file for this run

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