Skip to content

Commit

Permalink
Simplify test workflow to avoid confusion with multiple symbolic links
Browse files Browse the repository at this point in the history
  • Loading branch information
nezhar committed Nov 13, 2024
1 parent f8f5b1a commit 48ef5b7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,11 @@ jobs:
python setup.py install
- name: Run tests
working-directory: ./tests
run: |
# prepare Django project: link all necessary data from the test project into the root directory
# Hint: Simply changing the directory does not work (leads to missing files in coverage report)
ln -s ./tests/test test
ln -s ./tests/user_id_uuid_testapp user_id_uuid_testapp
ln -s ./tests/manage.py manage.py
ln -s ./tests/settings.py settings.py
ln -s ./tests/urls.py urls.py
# run tests with coverage
ln -s ../django_rest_passwordreset django_rest_passwordreset
coverage run --source='./django_rest_passwordreset' manage.py test
coverage xml
coverage xml -o ../coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4

0 comments on commit 48ef5b7

Please sign in to comment.