Python 3.11/3.12 and Django 5.0/5.1 Testing and Declared Support #115
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | |
django-version: [ 3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1 ] | |
exclude: | |
# Django 5.0/5.1 don't support < Python 3.10 | |
- python-version: '3.9' | |
django-version: '5.0' | |
- python-version: '3.9' | |
django-version: '5.1' | |
steps: | |
- name: Install system dependencies (windows) | |
if: matrix.os == 'windows-latest' | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: zlib | |
- uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python dev.py -no-container | |
pip install -q Django==${{ matrix.django-version }} | |
python -m pip install --upgrade pip | |
pip install -U setuptools | |
python setup.py install | |
- name: Test with pytest | |
run: | | |
python runtests.py |