Initial commit #1
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 workflow runs pytest against the repository. | |
# | |
# You can adjust the behavior by modifying this file. | |
name: Run pytest | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
python-version: | |
- "3.9" # EOL 2025-10 | |
- "3.10" # EOL 2026-10 | |
- "3.11" # EOL 2027-10 | |
- "3.12" # EOL 2028-10 | |
experimental: [false] | |
include: | |
- python-version: 3.x | |
experimental: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install poetry | |
run: pipx install poetry | |
- name: setup python-${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: poetry install | |
run: poetry install | |
- name: poetry run pytest | |
run: | | |
poetry run pytest | |
- name: poetry run coveralls | |
if: matrix.python-version == '3.x' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
poetry run coveralls --service=github || poetry run coveralls --service=github-actions |