Skip to content

Merge pull request #344 from alunduil/pre-commit-ci-update-config #669

Merge pull request #344 from alunduil/pre-commit-ci-update-config

Merge pull request #344 from alunduil/pre-commit-ci-update-config #669

Workflow file for this run

# 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.8" # EOL 2024-10
- "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 pytest
poetry run coveralls --service=github || poetry run coveralls --service=github-actions