Skip to content

Feat: django 42 compat (#1) #3

Feat: django 42 compat (#1)

Feat: django 42 compat (#1) #3

Workflow file for this run

name: Tox tests
on: [push, pull_request]
jobs:
test:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.continue-on-error }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
django: [32, 41, 42]
continue-on-error: [true]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ format('py{0}-django{1}', matrix.python-version, matrix.django) }}
restore-keys: |
${{ runner.os }}-pip-${{ format('py{0}-django{1}', matrix.python-version, matrix.django) }}
- name: Cache tox
uses: actions/cache@v3
with:
path: .tox
key: ${{ runner.os }}-tox-${{ format('{{py{0}-django{1}}}', matrix.python-version, matrix.django) }}-${{ hashFiles('setup.cfg') }}
restore-keys: |
${{ runner.os }}-tox-${{ format('{{py{0}-django{1}}}', matrix.python-version, matrix.django) }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools tox>4
- name: Test with tox
env:
TOX_ENV: ${{ format('py{0}-django{1}', matrix.python-version, matrix.django) }}
run: |
tox -e$TOX_ENV