mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-02 13:53:43 +03:00
DRY's up config
This commit is contained in:
parent
cb1e2b61b8
commit
93ed2a1528
|
@ -12,12 +12,9 @@ jobs:
|
||||||
executor: docker/docker
|
executor: docker/docker
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: echo "Django==$DJANGO_VERSION" > requirements.txt
|
- run: pip install -q --user coveralls djangorestframework==$DRF "Django==$DJANGO_VERSION
|
||||||
- run: echo "djangorestframework==$DRF" >> requirements.txt
|
- run: pip install -q --user -r dev-requirements.txt
|
||||||
- run: pip install --user coveralls
|
- run: pip install -q --user -r dj_rest_auth/tests/requirements.pip
|
||||||
- run: pip install --user -r requirements.txt
|
|
||||||
- run: pip install --user -r dev-requirements.txt
|
|
||||||
- run: pip install --user -r dj_rest_auth/tests/requirements.pip
|
|
||||||
- run:
|
- run:
|
||||||
command: coverage run --source=dj_rest_auth setup.py test
|
command: coverage run --source=dj_rest_auth setup.py test
|
||||||
name: Test
|
name: Test
|
||||||
|
|
|
@ -20,5 +20,6 @@ def runtests():
|
||||||
failures = test_runner.run_tests(['dj_rest_auth'])
|
failures = test_runner.run_tests(['dj_rest_auth'])
|
||||||
sys.exit(bool(failures))
|
sys.exit(bool(failures))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
runtests()
|
runtests()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user