Skip to content

Commit

Permalink
Merge pull request #565 from hugovk/fix-coverage
Browse files Browse the repository at this point in the history
Fix coverage: use default file locations
  • Loading branch information
j-antunes authored Jan 31, 2024
2 parents a0bd0b3 + b3b2db1 commit 35e6ee4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,4 @@ jobs:
- run: pip install -U tox tox-gh-actions django
# TODO: postgres setup and proper djangomain testing
- run: python -m tox
- run: |
mkdir /tmp/coverage
find .tox -type f -name 'coverage*xml' -exec mv '{}' /tmp/coverage ';'
- uses: codecov/codecov-action@v3
with:
directory: /tmp/coverage
4 changes: 1 addition & 3 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ We require features to be backed by a unit test.
This way, we can test *django-polymorphic* against new Django versions.
To run the included test suite, execute::

py.test
pytest

To test support for multiple Python and Django versions, run tox from the repository root::

Expand All @@ -24,8 +24,6 @@ The Python versions need to be installed at your system.
On Linux, download the versions at http://www.python.org/download/releases/.
On MacOS X, use Homebrew_ to install other Python versions.

We currently support Python 3.5, 3.6, 3.7, and 3.8.


Example project
----------------
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ deps =
djangomain: https://github.com/django/django/archive/main.tar.gz
postgres: psycopg2
commands =
py.test --cov --cov-report=term-missing --cov-report=xml .
pytest --cov --cov-report=term-missing --cov-report=xml .

[testenv:docs]
deps =
Expand Down

0 comments on commit 35e6ee4

Please sign in to comment.