Skip to content

Commit

Permalink
use pytest to run tests instead of inv
Browse files Browse the repository at this point in the history
  • Loading branch information
elfkuzco committed Jun 12, 2024
1 parent 2136c34 commit 9ad9156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/backend-Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ jobs:
working-directory: backend
env:
POSTGRES_URI: postgresql+psycopg://postgres:postgres@localhost:5432/postgres
run: inv coverage --args "-vvv"
run: pytest --cov=./ --cov-report=xml

- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
with:
directory: backend
files: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ check = [
test = [
"pytest==8.0.0",
"coverage==7.4.1",
"pytest-cov==5.0.0",
]
dev = [
"pre-commit==3.6.0",
Expand Down

0 comments on commit 9ad9156

Please sign in to comment.