Skip to content

Commit 35e6ee4

Browse files
authored
Merge pull request #565 from hugovk/fix-coverage
Fix coverage: use default file locations
2 parents a0bd0b3 + b3b2db1 commit 35e6ee4

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,4 @@ jobs:
4747
- run: pip install -U tox tox-gh-actions django
4848
# TODO: postgres setup and proper djangomain testing
4949
- run: python -m tox
50-
- run: |
51-
mkdir /tmp/coverage
52-
find .tox -type f -name 'coverage*xml' -exec mv '{}' /tmp/coverage ';'
5350
- uses: codecov/codecov-action@v3
54-
with:
55-
directory: /tmp/coverage

docs/contributing.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ We require features to be backed by a unit test.
1313
This way, we can test *django-polymorphic* against new Django versions.
1414
To run the included test suite, execute::
1515

16-
py.test
16+
pytest
1717

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

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

27-
We currently support Python 3.5, 3.6, 3.7, and 3.8.
28-
2927

3028
Example project
3129
----------------

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ deps =
2424
djangomain: https://github.com/django/django/archive/main.tar.gz
2525
postgres: psycopg2
2626
commands =
27-
py.test --cov --cov-report=term-missing --cov-report=xml .
27+
pytest --cov --cov-report=term-missing --cov-report=xml .
2828

2929
[testenv:docs]
3030
deps =

0 commit comments

Comments
 (0)