Dependencies #95
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: tests | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
# TODO support more versions | |
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8"] | |
poetry-version: ["1.8.4"] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install dependencies | |
run: poetry install --with dev | |
- name: Run pytest | |
run: poetry run pytest --cache-clear --cov | |
#| | |
#set -o pipefail | |
# | tee pytest-coverage.txt | |
# TODO figure out best way to display coverage | |
#- name: Comment coverage | |
# uses: coroo/pytest-coverage-commentator@v1.0.2 |