Skip to content

Commit

Permalink
Use relative paths for coverage, and correct windows paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Sep 30, 2022
1 parent da2a1ae commit 70654ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -169,6 +169,12 @@ jobs:
uses: actions/download-artifact@v2
with:
name: coverage-data
- name: Normalize paths in coverage data
if: matrix.platform == 'windows-latest'
run: |
for coverage in `ls .coverage.*`; do
sqlite3 $coverage "update file set path = replace(path, '\\', '/')"
done
- name: Combine coverage & fail if it's <100%.
run: |
pwd
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Expand Up @@ -5,10 +5,14 @@ build-backend = "setuptools.build_meta"
[tool.coverage.run]
parallel = true
branch = true
relative_files = true
source = ["src/briefcase"]

[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
precision = 1
exclude_lines = [
"pragma: no cover",
"@(abc\\.)?abstractmethod",
Expand Down

0 comments on commit 70654ea

Please sign in to comment.