diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000000..744d892b98 --- /dev/null +++ b/.github/codecov.yml @@ -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" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9a9041cac..19e6607c78 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }}