Skip to content

Make package compatible with older Python versions #22

Make package compatible with older Python versions

Make package compatible with older Python versions #22

Workflow file for this run

name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
python -m pip install poetry==1.8.3
- name: Configure poetry
run: |
python -m poetry config virtualenvs.in-project true
- name: Validate the structure of the pyproject.toml
run: |
poetry check
- name: Verify that poetry.lock is consistent with pyproject.toml
run: |
poetry check --lock
- name: Install dependencies
run: |
poetry install --no-root
- name: Run pre-commit hooks
run: |
poetry run pre-commit run --all-files
- name: Run tests
run: |
poetry run coverage run runtests.py
- name: Report coverage
run: |
poetry run coverage report -m --skip-covered