Skip to content

Commit

Permalink
task: add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
svaponi committed Jul 21, 2024
1 parent a3591f0 commit 7544caa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: poetry install
run: |
poetry install --with coverage
- name: Run tests
run: poetry run pytest
run: |
poetry run coverage run -m pytest
- name: Coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
poetry run coveralls
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ uvicorn = "^0.29.0"
black = "^24.4.0"
pytest-httpserver = "^1.0.10"

[tool.poetry.group.coverage]
optional = true

[tool.poetry.group.coverage.dependencies]
coveralls = { version = "^4.0.0", python = ">=3.9,<3.13" }

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Empty file added src/dummy
Empty file.

0 comments on commit 7544caa

Please sign in to comment.