File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 4747 - name : Install dependencies
4848 run : |
4949 python -m pip install --upgrade pip
50- pip install flake8
50+ pip install flake8 codecov
5151
5252 - name : Lint with flake8
5353 run : |
7373
7474 - name : Setup environment
7575 run : |
76+ pip install -e .
7677 python setup.py install
7778
7879 - name : Run tests
7980 run : |
80- cd tests
81- python manage.py test
81+ # prepare Django project: link all necessary data from the test project into the root directory
82+ # Hint: Simply changing the directory does not work (leads to missing files in coverage report)
83+ ln -s ./tests/test test
84+ ln -s ./tests/manage.py manage.py
85+ ln -s ./tests/settings.py settings.py
86+ ln -s ./tests/urls.py urls.py
87+
88+ # run tests with coverage
89+ coverage run --source='./django_rest_passwordreset' manage.py test
90+ coverage xml
91+
92+ - name : Upload coverage to Codecov
93+ uses : codecov/codecov-action@v1
Original file line number Diff line number Diff line change 22
33[ ![ PyPI version] ( https://img.shields.io/pypi/v/django-rest-passwordreset.svg )] ( https://pypi.org/project/django-rest-passwordreset/ )
44[ ![ build-and-test actions status] ( https://github.com/anexia-it/django-rest-passwordreset/workflows/build-and-test/badge.svg )] ( https://github.com/anexia-it/django-rest-passwordreset/actions )
5+ [ ![ Codecov] ( https://img.shields.io/codecov/c/gh/anexia-it/django-rest-passwordreset )] ( https://codecov.io/gh/anexia-it/django-rest-passwordreset )
56
67This python package provides a simple password reset strategy for django rest framework, where users can request password
78reset tokens via their registered e-mail address.
You can’t perform that action at this time.
0 commit comments