Skip to content

Commit

Permalink
integration with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
rogersamso committed Apr 19, 2024
1 parent 6101e81 commit 302ac77
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -U wheel
python -m pip install flake8
python -m pip install pytest-cov coveralls
python -m pip install --prefer-binary -r tests/requirements.txt
python -m pip install --prefer-binary -e .
- name: Lint with flake8
Expand All @@ -37,6 +38,14 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
- name: Test with pytest-cov
run: |
pytest
pytest tests/ --cov=bptk_py
coverage xml
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage.xml
if: ${{ matrix.python-version == 3.9 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest
pytest
pytest-cov

0 comments on commit 302ac77

Please sign in to comment.