-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests structure, Add Github Actions for running tests
- Loading branch information
Showing
15 changed files
with
109 additions
and
97 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,69 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [ $default-branch ] | ||
pull_request: | ||
branches: [ $default-branch ] | ||
workflow_dispatch: | ||
inputs: {} | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
env: [pytracking] | ||
include: | ||
- python-version: 3.6 | ||
env: django-dj111 | ||
- python-version: 3.7 | ||
env: django-dj111 | ||
- python-version: 3.6 | ||
env: django-dj20 | ||
- python-version: 3.7 | ||
env: django-dj20 | ||
- python-version: 3.6 | ||
env: django-dj21 | ||
- python-version: 3.7 | ||
env: django-dj21 | ||
- python-version: 3.6 | ||
env: django-dj22 | ||
- python-version: 3.7 | ||
env: django-dj22 | ||
- python-version: 3.8 | ||
env: django-dj22 | ||
- python-version: 3.9 | ||
env: django-dj22 | ||
- python-version: 3.6 | ||
env: django-dj30 | ||
- python-version: 3.7 | ||
env: django-dj30 | ||
- python-version: 3.8 | ||
env: django-dj30 | ||
- python-version: 3.9 | ||
env: django-dj30 | ||
- python-version: 3.6 | ||
env: django-dj31 | ||
- python-version: 3.7 | ||
env: django-dj31 | ||
- python-version: 3.8 | ||
env: django-dj31 | ||
- python-version: 3.9 | ||
env: django-dj31 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Test with tox and pyenv | ||
env: | ||
TOXENV: ${{ matrix.env }} | ||
run: | | ||
tox |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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
File renamed without changes.
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 |
---|---|---|
@@ -1,31 +1,21 @@ | ||
[tox] | ||
envlist = py36-vanilla,py36-crypto,py36-django,py36-webhook,py36-html | ||
envlist = | ||
py{36,37,38,39}-{pytracking}, | ||
py{36,37}-django-dj{111,20,21}, | ||
py{36,37,38,39}-django-dj{22,30,31} | ||
|
||
[testenv] | ||
deps = | ||
-rrequirements-test.txt | ||
commands = py.test | ||
|
||
[testenv:py36-crypto] | ||
deps = | ||
-rrequirements-test.txt | ||
-rrequirements-crypto.txt | ||
commands = py.test | ||
|
||
[testenv:py36-django] | ||
deps = | ||
-rrequirements-test.txt | ||
-rrequirements-django.txt | ||
commands = py.test | ||
|
||
[testenv:py36-webhook] | ||
deps = | ||
-rrequirements-test.txt | ||
-rrequirements-webhook.txt | ||
commands = py.test | ||
|
||
[testenv:py36-html] | ||
deps = | ||
-rrequirements-test.txt | ||
-rrequirements-html.txt | ||
commands = py.test | ||
extras = | ||
test | ||
pytracking: crypto,html,webhook | ||
django: django | ||
commands = | ||
pytracking: py.test --ignore tests/test_django.py | ||
django: py.test tests/test_django.py | ||
deps= | ||
dj111: Django>=1.11,<2.0 | ||
dj20: Django>=2.0,<2.1 | ||
dj21: Django>=2.1,<2.2 | ||
dj22: Django>=2.2,<2.3 | ||
dj30: Django>=3.0,<3.1 | ||
dj31: Django>=3.1,<3.2 |