From cb96ae71a91962fcf2d2a9b0d4c7126dff86dc36 Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Thu, 7 Oct 2021 17:35:27 +1100 Subject: [PATCH 1/4] chore: replace codecov Signed-off-by: Chris Butler --- .github/workflows/python-test.yml | 11 ++++++----- README.md | 2 +- setup.cfg | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index eb77ad005..10627b895 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -130,10 +130,11 @@ jobs: if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' }} run: | make test-cov - - name: Push code-cov + - name: Run coveralls if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' }} - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml + env: + GITHUB_TOKEN: ${{ secrets.ADMIN_PAT }} + run: | + coveralls --service=github + \ No newline at end of file diff --git a/README.md b/README.md index e8a0e5482..49872383d 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ Consult [contributors](https://github.com/IBM/compliance-trestle/graphs/contribu ``` [coverage]: https://codecov.io/gh/IBM/compliance-trestle -[coverage-badge]: https://codecov.io/gh/IBM/compliance-trestle/branch/develop/graph/badge.svg?token=1AUXDAF3OB +[coverage-badge]: https://img.shields.io/coveralls/github/IBM/compliance-trestle [platform-badge]: https://img.shields.io/badge/platform-osx%20%7C%20linux-orange.svg [pre-commit]: https://github.com/pre-commit/pre-commit [pre-commit-badge]: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white diff --git a/setup.cfg b/setup.cfg index 2c66a8af8..f272714a6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -75,6 +75,7 @@ dev = livereload ## Constrain system pylint + coveralls From edae60cc3e5d23a3a578dbfb05b58bfe759a60f4 Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Fri, 8 Oct 2021 07:58:58 +1100 Subject: [PATCH 2/4] chore: Force clean coveralls install. Signed-off-by: Chris Butler --- .github/workflows/python-test.yml | 2 ++ setup.cfg | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 10627b895..b38f76555 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -135,6 +135,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.ADMIN_PAT }} run: | + pip uninstall python-coveralls + pip install coveralls coveralls --service=github \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index f272714a6..2c66a8af8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -75,7 +75,6 @@ dev = livereload ## Constrain system pylint - coveralls From b02638eb13e1133d7cf3ccdaaa9934bfbe57f6a6 Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Fri, 8 Oct 2021 09:29:19 +1100 Subject: [PATCH 3/4] chore: Force clean coveralls install. Signed-off-by: Chris Butler --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index b38f76555..6a05f6535 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -137,6 +137,6 @@ jobs: run: | pip uninstall python-coveralls pip install coveralls - coveralls --service=github + coveralls --service=github-actions \ No newline at end of file From 169d88fefd000a13f7f8d868d037906c8ede2dda Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Fri, 8 Oct 2021 10:24:52 +1100 Subject: [PATCH 4/4] fix: Correcting tokens Signed-off-by: Chris Butler --- .github/workflows/python-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 6a05f6535..3a55066fc 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -133,10 +133,10 @@ jobs: - name: Run coveralls if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' }} env: - GITHUB_TOKEN: ${{ secrets.ADMIN_PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | pip uninstall python-coveralls pip install coveralls - coveralls --service=github-actions + coveralls --service=github \ No newline at end of file