Skip to content

Commit

Permalink
fix(ci: action): 🐛 fix codecov workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilahijriyan committed Apr 27, 2024
1 parent 33e8244 commit bf3bb40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ saq = "popol.jobs.saq.cli:saq"
"Bug Tracker" = "https://github.com/aprilahijriyan/popol/issues"

[tool.pytest.ini_options]
addopts = "--cov=popol -v"
addopts = "--cov=popol -v --cov-report xml --cov-report term "
testpaths = ["tests"]
# asyncio_mode = "auto"
2 changes: 2 additions & 0 deletions tests/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def test_sync_redis_backend():
assert cache.get(key) == 1
assert cache.incr(key) == 2
assert cache.decr(key) == 1
cache.clear()

@pytest.mark.anyio
async def test_async_redis_backend():
Expand All @@ -81,3 +82,4 @@ async def test_async_redis_backend():
assert await cache.get(key) == 1
assert await cache.incr(key) == 2
assert await cache.decr(key) == 1
await cache.clear()

0 comments on commit bf3bb40

Please sign in to comment.