From 164252e3f9bec1465a5fb22e9868901fc2d95fe1 Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Mon, 1 Jul 2024 22:34:37 +0100 Subject: [PATCH] use coveralls' github action --- .github/workflows/tests.yml | 24 +++++++++--------------- CHANGES.rst | 3 ++- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d96e5a8..1700ff9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -47,13 +47,11 @@ jobs: pip install tox coveralls coverage-python-version - name: Test run: tox -e ${{ matrix.config[1] }} - - name: Upload coverage data to coveralls.io - run: coveralls --service=github || which coveralls - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_REPO_TOKEN: ${{ secrets.CODECOV_TOKEN }} - COVERALLS_FLAG_NAME: ${{ matrix.config[1] }} - COVERALLS_PARALLEL: true + - name: Coveralls Parallel + uses: coverallsapp/github-action@v2 + with: + flag-name: run-${{ join(matrix.*, '-') }} + parallel: true coverage: # parallel test coverage upload @@ -64,15 +62,11 @@ jobs: # see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-not-requiring-successful-dependent-jobs if: ${{ always() }} runs-on: ubuntu-latest - container: python:3-slim steps: - - name: Install dependencies - run: pip3 install --upgrade coveralls - - name: Upload coverage - run: coveralls --service=github --finish || which coveralls - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_REPO_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Coveralls Finished + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true deploy-tag-to-pypi: # only deploy on tags, see https://stackoverflow.com/a/58478262/1320237 diff --git a/CHANGES.rst b/CHANGES.rst index 30aeb8f..4e13b95 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,12 +11,13 @@ Minor changes: - Parallelize coverage - Rename ``master`` branch to ``main``, see `Issue `_ -- Update ``docs/usage.rst`` to use zoneinfo instead of pytz. +- Update ``docs/usage.rst`` to use zoneinfo instead of pytz. - Added missing public classes and functions to API documentation. - Improved namespace management in the ``icalendar`` directory. - Add Python version badge and badge for test coverage - Remove 4.x badge - Update list of ``tox`` environments +- Use Coveralls' GitHub Action Breaking changes: