Skip to content

Commit

Permalink
Revert "Drop coveralls support because of coverallsapp/github-action#30"
Browse files Browse the repository at this point in the history
This reverts commit e660da8.
  • Loading branch information
baztian committed Jun 19, 2020
1 parent af47f07 commit b646d1b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down

0 comments on commit b646d1b

Please sign in to comment.