Skip to content

Tests

Tests #95

Workflow file for this run

name: Tests
on:
push:
pull_request:
schedule:
- cron: "0 5 13 * *"
jobs:
test:
name: Tests (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.8", "3.9", "3.10", "3.11", "3.12.0-rc.3"]
django-version: ["3.2", "4.0", "4.1", "4.2", "main"]
exclude:
- python-version: "3.8"
django-version: "main"
- python-version: "3.9"
django-version: "main"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache poetry
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ matrix.python-version }}-v1-${{ hashFiles('tox.ini') }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
python -m pip install --upgrade tox tox-gh-actions
- name: Tox tests
run: |
tox -v
env:
DJANGO: ${{ matrix.django-version }}