From 5089f17d65860a97895de7f0b14786aed32e3b7a Mon Sep 17 00:00:00 2001 From: Bruce Merry Date: Tue, 22 Oct 2024 11:24:32 +0200 Subject: [PATCH] Use the coveralls Github action Also use it with parallel flags, which will hopefully stop the MacOS coverage builds from failing. --- .github/workflows/test.yml | 16 +++++++++++++--- requirements.in | 1 - requirements.txt | 18 +----------------- 3 files changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e73a1d5..f6209b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,17 @@ jobs: - run: pip check - run: pytest -Werror --cov=aiokatcp --cov-branch - run: pre-commit run --all-files - - run: coveralls --service=github - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: coverallsapp/github-action@v2.3.3 + with: + parallel: true + flag-name: ${{ matrix.os }} if: ${{ matrix.coverage == 'yes' }} + finish: + needs: test + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Finalise Coveralls + uses: coverallsapp/github-action@v2.3.3 + with: + parallel-finished: true diff --git a/requirements.in b/requirements.in index 234d89b..fd298ca 100644 --- a/requirements.in +++ b/requirements.in @@ -1,6 +1,5 @@ async-solipsism async-timeout -coveralls decorator katcp-codec pre-commit diff --git a/requirements.txt b/requirements.txt index 58f62b0..8c23503 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,32 +8,20 @@ async-solipsism==0.6 # via -r requirements.in async-timeout==4.0.3 # via -r requirements.in -certifi==2024.7.4 - # via requests cfgv==3.4.0 # via pre-commit -charset-normalizer==3.3.2 - # via requests coverage[toml]==6.5.0 - # via - # coveralls - # pytest-cov -coveralls==3.3.1 - # via -r requirements.in + # via pytest-cov decorator==5.1.1 # via -r requirements.in distlib==0.3.8 # via virtualenv -docopt==0.6.2 - # via coveralls exceptiongroup==1.2.0 # via pytest filelock==3.13.4 # via virtualenv identify==2.5.35 # via pre-commit -idna==3.7 - # via requests iniconfig==2.0.0 # via pytest katcp-codec==0.1.0 @@ -62,16 +50,12 @@ pytest-mock==3.14.0 # via -r requirements.in pyyaml==6.0.1 # via pre-commit -requests==2.32.0 - # via coveralls tomli==2.0.1 # via # coverage # pytest typing-extensions==4.11.0 # via -r requirements.in -urllib3==2.2.2 - # via requests virtualenv==20.25.1 # via pre-commit