Skip to content

Commit

Permalink
Merge pull request #11 from pycasbin/develop
Browse files Browse the repository at this point in the history
ci: Upload coverage data to coveralls.io
  • Loading branch information
leeqvip authored Jul 10, 2022
2 parents 4c460fc + 4452e1e commit 466a9d8
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install coveralls
pip install --upgrade coveralls
- 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 466a9d8

Please sign in to comment.