New version #138
Workflow file for this run
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: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
tests: | |
runs-on: "ubuntu-latest" | |
name: "Unit test for Python ${{ matrix.python-version }}" | |
env: | |
USING_COVERAGE: '3.12' | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: "actions/checkout@v2" | |
- uses: "actions/setup-python@v2" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "Install dependencies" | |
run: | | |
pip install poetry | |
poetry install | |
- name: "Run tox targets for ${{ matrix.python-version }}" | |
run: "make tox" | |
- name: "Get coverage" | |
run: | | |
set -xe | |
pip install coverage | |
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" |