Skip to content

Commit

Permalink
Merge pull request #62 from GiacomoPope/coveralls
Browse files Browse the repository at this point in the history
Attempt to include coveralls
  • Loading branch information
GiacomoPope authored Jul 23, 2024
2 parents b31460b + ccc6aa9 commit 9842272
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ jobs:
- name: Display installed python package versions
run: |
pip list || :
- name: Install pytest
- name: Install test requirements
run: |
pip install pytest
pip install pytest coverage coveralls
- name: Install build dependencies
run: |
pip install -r requirements.txt
Expand All @@ -120,4 +120,29 @@ jobs:
pip list || :
- name: Run unit tests
run: |
pytest
coverage run --branch -m pytest
- name: Print collected coverage
run: |
coverage report
- name: Publish coverage to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.name }}
COVERALLS_PARALLEL: true
COVERALLS_SERVICE_NAME: github
run: |
coveralls
coveralls:
name: Indicate completion to coveralls
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Install coveralls
run: |
pip3 install --upgrade coveralls
- name: Report to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
run: coveralls --finish
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/.DS_Store
__pycache__
docs/build
.coverage

0 comments on commit 9842272

Please sign in to comment.