Skip to content

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

[pre-commit.ci] pre-commit autoupdate

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

Workflow file for this run

name: tests
on: [push, pull_request, workflow_dispatch]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
django-version: ["4.0", "4.1", "4.2"]
steps:
- uses: actions/checkout@v4
- name: Install latest version of Poetry
run: |
pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
cache-dependency-path: pyproject.toml
- run: |
poetry install --no-interaction --no-root
- name: Run tests
run: |
poetry run pytest --cov