Skip to content

Commit

Permalink
add coveralls CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
GiacomoPope committed Jul 23, 2024
1 parent ffb428d commit 3040d08
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,46 @@ jobs:
- name: Run unit tests
run: |
pytest
coveralls:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Display installed python package versions
run: |
pip list || :
- name: Install coverage
run: |
pip install coverage
- name: Install pytest
run: |
pip install pytest
- name: Install build dependencies
run: |
pip install -r requirements.txt
- name: Display installed python package versions
run: |
pip list || :
- name: Run unit tests with coverage
run: |
coverage run -m pytest
- name: Report Coveralls
run: curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 3040d08

Please sign in to comment.