Skip to content

Commit

Permalink
Add Django 4.1 to CI (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarPersson authored Feb 21, 2023
1 parent 68b188c commit 2bbf7de
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ on:

jobs:
linting:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand All @@ -33,7 +33,7 @@ jobs:
isort . --check-only --diff
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

strategy:
fail-fast: false
Expand Down Expand Up @@ -72,13 +72,18 @@ jobs:
- "py38-django30"
- "py38-django32"
- "py38-django40"
- "py38-django41"

- "py39-django30"
- "py39-django32"
- "py39-django40"
- "py39-django41"

- "py310-django32"
- "py310-django40"
- "py310-django41"

- "py311-django41"

include:
- python: "2.7"
Expand Down Expand Up @@ -143,32 +148,41 @@ jobs:
tox_env: "py38-django32"
- python: "3.8"
tox_env: "py38-django40"
- python: "3.8"
tox_env: "py38-django41"

- python: "3.9"
tox_env: "py39-django30"
- python: "3.9"
tox_env: "py39-django32"
- python: "3.9"
tox_env: "py39-django40"
- python: "3.9"
tox_env: "py39-django41"

- python: "3.10"
tox_env: "py310-django32"
- python: "3.10"
tox_env: "py310-django40"
- python: "3.10"
tox_env: "py310-django41"

- python: "3.11"
tox_env: "py311-django41"


steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install
run: |
python -m pip install --upgrade wheel setuptools
pip install tox tox-venv
pip install distlib tox
- name: Test
run: |
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ envlist =
{py36,py37,py38,py39}-django22,
{py35,py36,py37,py38,py39}-django30,
{py35,py36,py37,py38,py39,py310}-django32,
{py38,py39,py310}-{django40},
{py38,py39,py310}-django40,
{py38,py39,py310,py311}-django41,

[testenv]
commands = python manage.py test
envdir = {toxworkdir}/venvs/{envname}
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
Expand All @@ -28,5 +28,6 @@ deps =
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
django40: Django>=4.0,<5.0
django40: Django>=4.0,<4.1
django41: Django==4.1.*

0 comments on commit 2bbf7de

Please sign in to comment.