From 3826628bdee323f1d91acb1deec6ad070ece4c35 Mon Sep 17 00:00:00 2001 From: Jeferson Daniel Date: Tue, 3 Oct 2023 22:56:04 -0300 Subject: [PATCH 1/2] chore: Update code coverage pipeline --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d648161..4712157 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,9 +19,11 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements_test.txt - - name: Test & publish code coverage + - name: Test + run: | + phulpy test + - name: Publish code coverage + if: github.ref == 'refs/heads/main' uses: paambaati/codeclimate-action@v3.2.0 env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} - with: - coverageCommand: phulpy test From 458fd91610d8c6147a31af6a519dc11af0998476 Mon Sep 17 00:00:00 2001 From: Jeferson Daniel Date: Tue, 3 Oct 2023 23:01:41 -0300 Subject: [PATCH 2/2] chore: Update workflow target --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4712157..c2de053 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,8 @@ name: Tests on: push: + branches: + - main pull_request_target: types: [opened, synchronize] jobs: