Skip to content

Commit

Permalink
ci: Fix coverage measurement on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 19, 2024
1 parent 2fd5164 commit ce4c367
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ jobs:

- name: Install Poetry
env:
NOXSESSION: coverage
PIP_CONSTRAINT: .github/workflows/constraints.txt
run: |
pipx install poetry
Expand Down Expand Up @@ -199,13 +200,16 @@ jobs:
pipx inject nox nox-poetry
nox --version
- run: nox --install-only

- name: Combine coverage data and display human readable report
run: |
nox --session=coverage
nox -r --no-install -- combine --debug=pathmap
nox -r --no-install -- report --show-missing --ignore-errors
- name: Create coverage report
run: |
nox --session=coverage -- xml
nox -r --no-install -- xml
- uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ tests = [
[tool.coverage.run]
branch = true
source = ["singer_sdk", "tests"]
relative_files = true # This allows coverage to be measured in Windows
omit = [
"tests/*",
"samples/*",
Expand Down

0 comments on commit ce4c367

Please sign in to comment.