Skip to content

Commit

Permalink
Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Feb 21, 2022
1 parent da425d7 commit 5844e70
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,25 @@ jobs:
mappyfile schema mapfile-schema-7-6.json --version=7.6
mappyfile validate tests/sample_maps/256_overlay_res.map
mappyfile format tests/sample_maps/256_overlay_res.map tests/sample_maps/256_overlay_res_formatted.map
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.xml
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true

# see https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support
# see https://github.com/marketplace/actions/coveralls-github-action
finish:
# we can't use coveralls-github-action as it doesn't support xml output
# see https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support
coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5844e70

Please sign in to comment.