Upgrade to bswck/skeleton@d097ca9 #150
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
# This file was generated from bswck/skeleton@d097ca9. | |
# Instead of changing this particular file, you might want to alter the template: | |
# https://github.com/bswck/skeleton/tree/d097ca9/project/.github/workflows/%23%25%20if%20test_suite%20%25%23test.yml%23%25%20endif%20%25%23.jinja | |
name: "Tests" | |
on: ["push"] | |
jobs: | |
test: | |
runs-on: "ubuntu-latest" | |
environment: "Test" | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: "Set up Python ${{matrix.python-version}}" | |
uses: "actions/setup-python@v5" | |
with: | |
python-version: "${{matrix.python-version}}" | |
- name: "Install the project" | |
run: | | |
pip install poetry | |
poetry install | |
- name: "Run tests" | |
run: "poetry run coverage run -m pytest -v ." | |
- name: "Report coverage" | |
run: > | |
poetry run coverage report | |
&& poetry run coverage html --show-contexts | |
--title "runtime_generics coverage for ${{github.sha}} (measured on Python ${{matrix.python-version}})" | |
- name: "Store coverage html" | |
uses: "actions/upload-artifact@v3" | |
with: | |
name: "coverage-html" | |
path: "htmlcov" |