Skip to content

Commit

Permalink
ci: Fix coverage measurement on Windows (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Jan 19, 2024
1 parent 815f9c0 commit ac28095
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ jobs:
name: Coverage
runs-on: ubuntu-latest
needs: tests
env:
NOXSESSION: coverage
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -199,13 +201,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 ac28095

Please sign in to comment.