Merge pull request #87 from uktrade/dependabot/npm_and_yarn/braces-3.0.3 #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
name: Test | |
strategy: | |
matrix: | |
# If changing how many times tests are run, must also change in codecov.yml | |
# to ensure test coverage is reported only after all tests have finished | |
include: | |
- python-version: "3.6.7" | |
os: "ubuntu-20.04" | |
- python-version: "3.7.1" | |
os: "ubuntu-20.04" | |
- python-version: "3.8.0" | |
os: "ubuntu-20.04" | |
- python-version: "3.9.0" | |
os: "ubuntu-20.04" | |
- python-version: "3.10.0" | |
os: "ubuntu-20.04" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v3" | |
- uses: "actions/setup-python@v4" | |
with: | |
python-version: '${{ matrix.python-version }}' | |
- name: "Install python dependencies" | |
run: | | |
pip install ".[ci]" | |
- name: "Run tests" | |
run: | | |
coverage run -m unittest -v | |
- uses: codecov/codecov-action@v3 |