Skip to content

Add config option to opt-out of generating CSRF token #158

Add config option to opt-out of generating CSRF token

Add config option to opt-out of generating CSRF token #158

Workflow file for this run

name: tests
on: [push, pull_request, workflow_dispatch]
jobs:
pre-commit:
name: Run pre-commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["4.2", "5.0"]
exclude:
- python-version: "3.8"
django-version: "5.0"
- python-version: "3.9"
django-version: "5.0"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install django~=${{ matrix.django-version }}
pip install -e ".[dev]"
- name: Run tests
run: |
pytest --cov