Skip to content

Commit

Permalink
chore(ci): add codecov
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Sep 19, 2024
1 parent 380f1c3 commit 7899c05
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
coverage:
precision: 0
round: down
range: "60...85"

status:
project:
v3:
paths:
- examples/src
- examples/tests/v3
- src/pact/v3
- tests/v3
v2:
paths:
- examples/src
- examples/tests
- "!examples/tests/v3"
- src/pact
- "!src/pact/v3"
- tests
- "!tests/v3"
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ jobs:
run: hatch run test --broker-url=http://pactbroker:pactbroker@localhost:9292 --container

- name: Upload coverage
# TODO: Configure code coverage monitoring
if: false && matrix.python-version == env.STABLE_PYTHON_VERSION && matrix.os == 'ubuntu-latest'
if: matrix.python-version == env.STABLE_PYTHON_VERSION && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 7899c05

Please sign in to comment.