Make package compatible with older Python versions #22
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
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 |