Skip to content

[pre-commit.ci] pre-commit autoupdate #263

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #263

Workflow file for this run

---
name: pytest
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: ./.github/actions/setup-poetry
with:
groups: main,test
python-version: ${{ matrix.python-version }}
- name: Print versions
run: |
python --version
poetry --version
- name: Test with pytest
working-directory: tests
run: poetry run pytest