Skip to content

Commit

Permalink
add coveralls to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
broox committed Nov 4, 2022
1 parent e701cc2 commit 4cf9931
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
branches: [master]

jobs:
build:

test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -33,4 +32,20 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --per-file-ignores='*/__init__.py:F401' --statistics
- name: Unit test
run: |
pytest
python -m pytest --cov=./nuheat --cov-report lcov
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.python-version }}
path-to-lcov: coverage.lcov
parallel: true
coveralls:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'coverage==6.5.0',
'mock==4.0.3',
'pytest==7.2.0',
'pytest-cov==4.0.0',
'responses==0.22.0',
]
},
Expand Down

0 comments on commit 4cf9931

Please sign in to comment.