Scheduled monthly dependency update for November #426
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: Unit Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
tests: | |
runs-on: "ubuntu-latest" | |
name: "Unit test for Python ${{ matrix.python-version }}" | |
env: | |
USING_COVERAGE: '3.10' | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- uses: "actions/checkout@v2" | |
- uses: "actions/setup-python@v2" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "Run tox targets for ${{ matrix.python-version }}" | |
run: "make tox" | |
- name: "Get coverage" | |
run: | | |
set -xe | |
pip install -r dev-requirements.txt | |
coverage combine | |
coverage xml | |
if: "contains(env.USING_COVERAGE, matrix.python-version)" | |
- name: Upload coverage to Codecov | |
if: "contains(env.USING_COVERAGE, matrix.python-version)" | |
uses: "codecov/codecov-action@v1" |