Skip to content

Commit

Permalink
Updated supported versions and CI matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
carltongibson committed Jan 6, 2023
1 parent d072672 commit e58ddb5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 31 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Run Tests
on: [push]

on:
push:
branches:
- main
pull_request:

jobs:
tests:
name: Python ${{ matrix.python-version }}
Expand All @@ -8,21 +14,27 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"

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

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install --upgrade tox tox-py coverage
python -m pip install --upgrade tox
- name: Run tox targets for ${{ matrix.python-version }}
run: tox --py current
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)

- name: codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v2
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ def find_version(*parts):
license='BSD',
url='https://django-appconf.readthedocs.io/',
packages=['appconf'],
python_requires='>=3.6',
python_requires='>=3.7',
install_requires=['django'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Utilities',
],
Expand Down
1 change: 1 addition & 0 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"context_processors": [
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"django.template.context_processors.request",
]
},
}
Expand Down
24 changes: 7 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,37 +1,27 @@
[tox]
skipsdist = True
usedevelop = True
minversion = 1.11
envlist =
flake8-py39,
py{36,37,38,39}-dj{22,31,32},
py{38,39}-dj{40,main}
flake8-py311,
py{37,38,39,310}-dj32
py{38,39,310,311}-dj{40,41,main}

[testenv]
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
pypy: pypy
usedevelop = true
setenv =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE=tests.test_settings
deps =
py{35,36,37,38,39,pypy}: coverage
py{37,38,39,310,311}: coverage
django-discover-runner
dj22: Django>=2.2,<3.0
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<4.0
dj40: Django>=4.0a1,<5.0
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
djmain: https://github.com/django/django/archive/main.tar.gz#egg=django

commands =
coverage run {envbindir}/django-admin test -v2 {posargs:tests}
coverage report

[testenv:flake8-py39]
[testenv:flake8-py311]
commands = flake8 appconf
deps = flake8

Expand Down

0 comments on commit e58ddb5

Please sign in to comment.