Skip to content

Commit

Permalink
Add QA for Django 4.0, Python 3.9, 3.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Dec 18, 2021
1 parent d031a4f commit 57fd0ab
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 28 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Python package

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
django-version: [2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0]

exclude:

- python-version: 3.7
django-version: 4.0

- python-version: 3.6
django-version: 4.0

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} & Django ${{ matrix.django-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install deps
run: |
python -m pip install pytest coverage coveralls "Django~=${{ matrix.django-version }}.0"
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
run: |
coverage run --source=siteflags setup.py test
coveralls --service=github
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ https://github.com/idlesign/django-siteflags
.. image:: https://img.shields.io/coveralls/idlesign/django-siteflags/master.svg
:target: https://coveralls.io/r/idlesign/django-siteflags

.. image:: https://img.shields.io/travis/idlesign/django-siteflags/master.svg
:target: https://travis-ci.org/idlesign/django-siteflags


Description
-----------
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def get_version():
'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',
'License :: OSI Approved :: BSD License'
],
)
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
envlist =
py{36,37,38}-django{20,21,22,30,31,32}
py{36}-django{20,21,22,30,31,32}
py{37,38,39,310}-django{20,21,22,30,31,32,40}

install_command = pip install {opts} {packages}
skip_missing_interpreters = True
Expand All @@ -15,3 +16,4 @@ deps =
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1

0 comments on commit 57fd0ab

Please sign in to comment.