From b646d1b4d687094ffdde2c0bd290cb2498011e7e Mon Sep 17 00:00:00 2001 From: baztian Date: Fri, 19 Jun 2020 23:23:27 +0200 Subject: [PATCH] Revert "Drop coveralls support because of https://github.com/coverallsapp/github-action/issues/30" This reverts commit e660da8e2f777465f334a074588c310cbf25e1a5. --- .github/workflows/python-package.yml | 25 ++++++++++++++++++++----- README.rst | 3 +++ 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8125e5a..610967e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -37,15 +37,30 @@ jobs: JYTHON: ${{ matrix.jython }} - name: Install dependencies # for some reason installing from https://github.com/baztian/tox-gh-actions/archive/allow-env-override.tar.gz doesn't work - run: pip install tox git+https://github.com/baztian/tox-gh-actions.git@allow-env-override + run: pip install coveralls tox git+https://github.com/baztian/tox-gh-actions.git@allow-env-override - name: Test with tox for Jython only if: matrix.jython run: tox -e "${{ matrix.toxenv }}" - name: Test with tox for non Jython only if: ${{ ! matrix.jython }} run: tox - - name: SonarCloud Scan - uses: sonarsource/sonarcloud-github-action@master + - name: Coveralls Parallel env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # required due to https://github.com/coverallsapp/github-action/issues/50 + COVERALLS_FLAG_NAME: run-${{ matrix.python-version }}-${{ matrix.plattform }} + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + path-to-lcov: .coverage + # flag-name: run-${{ matrix.python-version }}-${{ matrix.plattform }} + parallel: true + + finish: + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + parallel-finished: true diff --git a/README.rst b/README.rst index c324963..ce7da21 100644 --- a/README.rst +++ b/README.rst @@ -5,6 +5,9 @@ .. image:: https://github.com/baztian/jaydebeapi/workflows/CI/badge.svg :target: https://github.com/baztian/jaydebeapi/actions +.. image:: https://img.shields.io/coveralls/baztian/jaydebeapi/master.svg + :target: https://coveralls.io/r/baztian/jaydebeapi + .. image:: https://img.shields.io/badge/python-2.7,_3.5,_3.6-blue.svg :target: https://pypi.python.org/pypi/JayDeBeApi/