Skip to content

Commit

Permalink
ci: Upload coverage data to coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
leeqvip committed Jul 10, 2022
1 parent 4c460fc commit f42af06
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
- name: Run tests
run: coverage run -m unittest discover -s tests -t tests

# - name: Upload coverage data to coveralls.io
# run: coveralls --service=github
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_FLAG_NAME: ${{ matrix.os }} - ${{ matrix.python-version }}
# COVERALLS_PARALLEL: true
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.os }} - ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

lint:
name: Run Linters
Expand All @@ -60,24 +60,23 @@ jobs:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# coveralls:
# name: Indicate completion to coveralls.io
# needs: test
# runs-on: ubuntu-latest
# container: python:3-slim
# steps:
# - name: Finished
# run: |
# pip3 install --upgrade coveralls
# coveralls --service=github --finish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
name: Release
runs-on: ubuntu-latest
# needs: [ test, coveralls ]
needs: [ test ]
needs: [ test, coveralls ]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit f42af06

Please sign in to comment.