Skip to content

Commit ada18a9

Browse files
committed
tests: run tests from the root dir
1 parent b4d1f82 commit ada18a9

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.coveragerc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[run]
2+
omit =
3+
demo/wsgi.py
4+
manage.py
5+
setup.py
6+
# Don't check for coverage in the temporary views folder at root. `demo/views/` should be covered
7+
views/*
8+
9+
[report]
10+
show_missing = True

.github/workflows/test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,5 @@ jobs:
8080
pip install -e ".[testing]"
8181
pip install "django~=${{ matrix.django }}"
8282
- name: Test
83-
run: (cd demo; pytest --cov-report=xml)
83+
run: pytest --cov-report=xml
8484
- uses: codecov/codecov-action@v2
85-
with:
86-
files: ./demo/coverage.xml
87-
verbose: true

demo/.coveragerc

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[pytest]
22
norecursedirs = .* _* htmlcov
3+
DJANGO_SETTINGS_MODULE=demo.settings
4+
pythonpath = demo
5+
filterwarnings =
6+
ignore
37
addopts =
48
--tb=short
5-
--ds=demo.settings
6-
--cov=../file_router
79
--cov=.
8-
--cov-report=html
910
--cov-report=term:skip-covered
1011
--cov-fail-under=100

0 commit comments

Comments
 (0)