Skip to content

Commit c2ace61

Browse files
committed
Persist coverage reports to host
1 parent d799120 commit c2ace61

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/stage-2-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
run: |
4545
cp .env.example .env
4646
make test-unit
47+
ls -lah
4748
- name: "Save the result of fast test suite"
4849
run: |
4950
docker cp lung_cancer_screening-web:/tmp/coverage.xml ./coverage.xml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ lung_cancer_screening/assets/compiled/*
2222
tests/TEST-*.xml
2323
node_modules
2424
.coverage
25+
coverage.xml

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ omit = [
4343
"*/tests/*",
4444
"manage.py"
4545
]
46-
data_file = "/tmp/.coverage"
46+
data_file = ".coverage"
4747

4848
[tool.coverage.xml]
49-
output = "/tmp/coverage.xml"
49+
output = "coverage.xml"

scripts/tests/unit.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,5 @@ docker compose run --rm --remove-orphans web sh -c \
3838
poetry run coverage run manage.py test $TEST_MODULE $TAG \
3939
--settings=lung_cancer_screening.settings_test \
4040
--exclude-tag=accessibility && \
41-
echo 'Generating coverage report...' && \
42-
coverage xml && \
43-
coverage report -m --skip-covered"
41+
echo 'Generating coverage report...'"
4442

0 commit comments

Comments
 (0)