From 7899c05a0fccb3c6daccdb398d189136b354f1e7 Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Thu, 19 Sep 2024 18:53:41 +1000 Subject: [PATCH] chore(ci): add codecov Signed-off-by: JP-Ellis --- .github/codecov.yml | 22 ++++++++++++++++++++++ .github/workflows/test.yml | 3 +-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/codecov.yml 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 }}