-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from jazzband/fix-failing-tests
Updates Test Configuration, Narrows Dependency Declaration
- Loading branch information
Showing
6 changed files
with
33 additions
and
34 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 |
---|---|---|
|
@@ -3,45 +3,44 @@ orbs: | |
docker: circleci/[email protected] | ||
|
||
jobs: | ||
test-django-3: &template | ||
test: | ||
docker: | ||
- image: circleci/python:3.8.0 | ||
environment: | ||
DJANGO_VERSION: 3.1 | ||
DRF: 3.11.1 | ||
executor: docker/docker | ||
steps: | ||
- checkout | ||
- run: | ||
command: pip install --user Django==$DJANGO_VERSION djangorestframework==$DRF | ||
name: "Pip install version-specific Django + DRF" | ||
command: pip install --user tox coverage coveralls | ||
name: "Install Tox & Coverage" | ||
- run: | ||
command: pip install --user -r dj_rest_auth/tests/requirements.pip | ||
name: "Pip Install test requirements" | ||
command: tox | ||
name: "Run Tox on All Supported Django and Python Versions" | ||
- run: | ||
command: | | ||
mkdir -p test-results/ | ||
coverage run --source=dj_rest_auth setup.py test | ||
coverage report | ||
name: Test | ||
tox -e coverage | ||
name: "Generate Coverage Report" | ||
- run: | ||
command: COVERALLS_REPO_TOKEN=Q58WdUuZOi89XHyDeDsGE2lxUGQ2IfqP3 coveralls | ||
name: Coverage | ||
name: "Send results to Coveralls" | ||
- store_test_results: | ||
path: test-results/ | ||
build: | ||
docker: | ||
- image: circleci/python:3.8.0 | ||
executor: docker/docker | ||
steps: | ||
- checkout | ||
- run: | ||
command: python3 setup.py sdist | ||
name: Build | ||
- store_test_results: | ||
path: test-results/ | ||
- store_artifacts: | ||
path: dist/ | ||
test-django-2: | ||
<<: *template | ||
environment: | ||
DJANGO_VERSION: 2.2.10 | ||
DRF: 3.9 | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- test-django-3 | ||
- test-django-2 | ||
- test | ||
- build: | ||
requires: | ||
- test |
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,7 +1,7 @@ | ||
__title__ = 'dj-rest-auth' | ||
__description__ = 'Authentication and Registration in Django Rest Framework.' | ||
__url__ = 'http://github.com/jazzband/dj-rest-auth' | ||
__version__ = '1.1.2' | ||
__version__ = '2.0.0' | ||
__author__ = '@iMerica https://github.com/iMerica' | ||
__author_email__ = '[email protected]' | ||
__license__ = 'MIT' | ||
|
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,6 +1,6 @@ | ||
django-allauth>=0.25.0 | ||
responses>=0.5.0 | ||
django-allauth==0.42.0 | ||
responses==0.10.0 | ||
flake8==2.4.0 | ||
djangorestframework-simplejwt==4.4.0 | ||
unittest-xml-reporting>=3.0.2 | ||
coveralls>=1.11.1 | ||
unittest-xml-reporting==3.0.2 | ||
coveralls==1.11.1 |
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