From 93ace6cc56379acd42cb599b491bb1dfbe5365a6 Mon Sep 17 00:00:00 2001 From: botlabsDev <54632107+botlabsDev@users.noreply.github.com> Date: Thu, 25 Jun 2020 18:38:45 +0200 Subject: [PATCH 1/2] Update cicd.yml --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 29452f3..7a83481 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -34,7 +34,7 @@ jobs: release: runs-on: ubuntu-latest needs: tests - if: github.event_name == 'push' && github.ref == 'master' + if: github.event_name == 'push' && github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v1 From c59a715c4121ead545290b2494a9779aaa26987c Mon Sep 17 00:00:00 2001 From: botlabsDev <54632107+botlabsDev@users.noreply.github.com> Date: Thu, 25 Jun 2020 18:56:17 +0200 Subject: [PATCH 2/2] Update cicd.yml add CODACY action to workflow --- .github/workflows/cicd.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 7a83481..c5cbb54 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -29,7 +29,16 @@ jobs: run: | pip install pytest pytest-cov codecov pytest --cov=npkpy --cov=acceptance_test + + - name: Publish to codecov + run: | codecov --token=${{ secrets.CODECOV_TOKEN }} + + - name: Run codacy-coverage-reporter + uses: codacy/codacy-coverage-reporter-action@master + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: cobertura.xml release: runs-on: ubuntu-latest