Skip to content

Commit

Permalink
Switch to GitHub Actions CI + drop support for old Python/Django
Browse files Browse the repository at this point in the history
Fixes hzdg#130
  • Loading branch information
akx committed Dec 29, 2022
1 parent f2fb794 commit 828f22e
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 46 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Build:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- python-version: '3.8'
- python-version: '3.9'
- python-version: '3.10'
- python-version: '3.11'
steps:
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v2
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/checkout@v2
- run: pip install -U pip wheel setuptools 'tox<4.0' tox-gh-actions
- run: tox
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@ maintainers = [
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"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",
"Topic :: Internet :: WWW/HTTP",
]
requires-python = ">=3.7"

dependencies = [
"django>=3.2",
]

[project.urls]
Homepage = "https://github.com/hzdg/django-enumfields"
Expand Down
19 changes: 14 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
[tox]
envlist =
py{36,37,38,39}-django{22,30,31}
py{38,39}-django{32}
py{39,310,311}-django{40,41}

[testenv]
setenv = PYTHONPATH = {toxinidir}
commands = py.test -s tests --cov=enumfields --cov-report=term-missing
deps =
djangorestframework>=3.7
pytest-django
pytest-coverage
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
pytest-cov
django32: Django~=3.2.0
django40: Django~=4.0.0
django41: Django~=4.1.0
django42: Django~=4.2.0

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

0 comments on commit 828f22e

Please sign in to comment.