-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing newer Python and Django versions
This is based off of work from @TTycho, @awais786, and @arpitjain799
- Loading branch information
Showing
9 changed files
with
154 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: "CodeQL" | ||
on: | ||
workflow_dispatch: | ||
#push: | ||
# branches: [master] | ||
#pull_request: | ||
# branches: [master] | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ["python"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: security-and-quality | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Unit tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
name: Python ${{ matrix.env.python }} | ${{ matrix.env.TOXENV }} | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
env: | ||
- python: 2.7 | ||
TOXENV: py27-django18-drf2 | ||
- python: 2.7 | ||
TOXENV: py27-django18-drf36 | ||
- python: 2.7 | ||
TOXENV: py27-django111-drf2 | ||
- python: 2.7 | ||
TOXENV: py27-django111-drf36 | ||
|
||
- python: 3.7 | ||
TOXENV: py37-django21-drf3 | ||
- python: 3.7 | ||
TOXENV: py37-django22-drf3 | ||
- python: 3.7 | ||
TOXENV: py37-django30-drf3 | ||
|
||
- python: 3.8 | ||
TOXENV: py38-django21-drf3 | ||
- python: 3.8 | ||
TOXENV: py38-django22-drf3 | ||
- python: 3.8 | ||
TOXENV: py38-django30-drf3 | ||
- python: 3.8 | ||
TOXENV: py38-django31-drf3 | ||
- python: 3.8 | ||
TOXENV: py38-django32-drf3 | ||
|
||
- python: 3.9 | ||
TOXENV: py39-django22-drf3 | ||
- python: 3.9 | ||
TOXENV: py39-django30-drf3 | ||
- python: 3.9 | ||
TOXENV: py39-django31-drf3 | ||
- python: 3.9 | ||
TOXENV: py39-django32-drf3 | ||
- python: 3.9 | ||
TOXENV: py39-django40-drf3 | ||
- python: 3.9 | ||
TOXENV: py39-django41-drf3 | ||
- python: 3.9 | ||
TOXENV: py39-django42-drf3 | ||
|
||
- python: '3.10' | ||
TOXENV: py310-django32-drf3 | ||
- python: '3.10' | ||
TOXENV: py310-django40-drf3 | ||
- python: '3.10' | ||
TOXENV: py310-django41-drf3 | ||
- python: '3.10' | ||
TOXENV: py310-django42-drf3 | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.env.python }} | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Run Tests | ||
env: | ||
TOXENV: django${{ matrix.env.TOXENV }} | ||
run: tox -e ${{ matrix.env.TOXENV }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ build/ | |
*.egg-info/ | ||
*~ | ||
|
||
/env*/ | ||
/.settings/ | ||
/.pydevproject | ||
/.project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
Django>=1.3 | ||
djangorestframework | ||
six>=1.4.1 | ||
unicodecsv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
author = 'Mjumbe Wawatu Ukweli' | ||
author_email = '[email protected]' | ||
license = 'BSD' | ||
install_requires = ['djangorestframework', 'six', 'unicodecsv'] | ||
install_requires = ['djangorestframework'] | ||
|
||
|
||
def get_version(package): | ||
|
@@ -77,12 +77,12 @@ def get_package_data(package): | |
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.3", | ||
"Programming Language :: Python :: 3.4", | ||
"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", | ||
"Framework :: Django", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
[tox] | ||
envlist = py27-django{18,111}-drf{2,36}, | ||
py35-django{18,111}-drf{2,36}, | ||
py36-django{111,21,22}-drf3 | ||
envlist = py36-django{111,21,22}-drf3 | ||
py37-django{21,22,30}-drf3 | ||
py38-django{21,22,30,31,32}-drf3 | ||
py39-django{22,30,31,32,41,42}-drf3 | ||
py310-django{32,40,41,42}-drf3 | ||
|
||
[testenv] | ||
commands = python manage.py test | ||
deps = | ||
six>=1.4.1 | ||
django18: Django>=1.8,<1.9 | ||
django111: Django>=1.11,<2.0 | ||
django21: Django>=2.1,<2.2 | ||
django22: Django>=2.2,<3 | ||
drf2: djangorestframework>=2,<3 | ||
drf36: djangorestframework>=3,<3.7 | ||
django30: Django>=3.0,<3.1 | ||
django31: Django>=3.1,<3.2 | ||
django32: Django>=3.2,<3.3 | ||
django41: Django>=4.1,<4.2 | ||
django42: Django>=4.2,<4.3 | ||
drf3: djangorestframework>=3,<4 |