Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 16 additions & 41 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
django-version: ['4.2', '5.0', '5.1']
python-version: ['3.9','3.10', '3.11', '3.12', '3.13']
django-version: ['4.2', '5.0', '5.1', '5.2', 'main']
os: [
ubuntu-latest,
]
Expand All @@ -19,44 +19,14 @@ jobs:
django-version: '5.0'
- python-version: '3.9'
django-version: '5.1'
- python-version: '3.9'
django-version: '5.2'
- python-version: '3.9'
django-version: 'main'
- python-version: '3.10'
django-version: '5.0'
- python-version: '3.10'
django-version: '5.1'

steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}

uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U Django==${{ matrix.django-version }} coverage setuptools
python setup.py install

- name: Run coverage
run: coverage run tests/settings.py

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v5


unit-tests-future-versions:
# Runs for all Django/Python versions which are not yet supported
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.12', '3.13']
django-version: [
'https://github.com/django/django/archive/main.tar.gz'
]
os: [
ubuntu-latest,
]
django-version: 'main'
- python-version: '3.11'
django-version: 'main'

steps:
- uses: actions/checkout@v5
Expand All @@ -68,12 +38,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ${{ matrix.django-version }} coverage setuptools
if [ "${{ matrix.django-version }}" = "5.2" ]; then
pip install -U "Django>=5.2a,<6.0" coverage setuptools
elif [ "${{ matrix.django-version }}" = "main" ]; then
pip install -U https://github.com/django/django/archive/main.tar.gz coverage setuptools
else
pip install -U Django==${{ matrix.django-version }} coverage setuptools
fi
python setup.py install

- name: Run coverage
run: coverage run tests/settings.py
continue-on-error: true

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v5
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ env/
/*docs/_build*/

local.sqlite
/.venv312/
/project-structure.txt
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ envlist =
flake8
isort
py{39,310,311,312}-dj42
py{311,312,313}-dj{50,51,52,main}
py{310,311,312,313}-dj{50,51,52}
py{312,313}-djmain

skip_missing_interpreters=True

Expand All @@ -28,6 +29,7 @@ ignore_errors =
[testenv:flake8]
deps = flake8
commands = flake8
skip_install = true

[testenv:isort]
deps = isort
Expand Down