Skip to content

Add Django 5.0 support (#176) #54

Add Django 5.0 support (#176)

Add Django 5.0 support (#176) #54

Workflow file for this run

name: Tests
on:
push:
pull_request:
types: [opened, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
django-version:
- '32'
- '41'
- '42'
- '50'
exclude:
- python-version: '3.7'
django-version: '41'
- python-version: '3.7'
django-version: '42'
- python-version: '3.7'
django-version: '50'
- python-version: '3.8'
django-version: '50'
- python-version: '3.9'
django-version: '50'
- python-version: '3.11'
django-version: '32'
- python-version: '3.12'
django-version: '32'
- python-version: '3.12'
django-version: '41'
env:
PYTHON_VERSION: ${{ matrix.python-version }}
DJANGO_VERSION: ${{ matrix.django-version }}
PYTHONUNBUFFERED: 1
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements*.txt
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel
make native-install-all
python -m pip install tox
- name: Test with tox
run: |
echo "Running py${PYTHON_VERSION/\./}-django${DJANGO_VERSION}"
tox -e "py${PYTHON_VERSION/\./}-django${DJANGO_VERSION}"
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.python-version }}-${{ matrix.django-version }}
parallel: true
path-to-lcov: "coverage.lcov"
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
path-to-lcov: "coverage.lcov"