Skip to content

Commit

Permalink
Trying to use coveralls action
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed Dec 3, 2023
1 parent a31d270 commit e5b9248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ jobs:
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: poetry run pytest --cov=./
run: poetry run python -m pytest --cov=.

- name: Upload coverage data to coveralls.io
run: |
pipx install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls
uses: coverallsapp/github-action@v2
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ python = "^3.8"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-cov = "^4.1.0"

flake8 = {version = "^6.1.0", python = "^3.8.1"}
coverage = {extras = ["toml"], version = "^7.3.2"}
flake8 = {version = "^6.1.0", python = "^3.8.1"}

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit e5b9248

Please sign in to comment.