Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ jobs:
- name: Run tests
run: python -m pytest -v

- name: Generate coverage report
run: python -m pytest --cov=app --cov-report=term-missing
- name: Lint with Ruff
run: ruff check .

- name: Run tests with coverage gate
run: python -m pytest --cov=app --cov-report=term-missing --cov-fail-under=80


publish:
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
Expand Down
2 changes: 0 additions & 2 deletions alembic/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
# target_metadata = None
# replacing with the actual metadata from models
from app.db.base import Base
from app.models.user import User
from app.models.task import Task

target_metadata = Base.metadata

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.ruff.lint.per-file-ignores]
"alembic/env.py" = ["E402", "F401"]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ email-validator
alembic
pytest-cov
pytest
httpx
httpx
Ruff
1 change: 0 additions & 1 deletion tests/test_tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest

def create_user(client):
response = client.post(
Expand Down
1 change: 0 additions & 1 deletion tests/test_users.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest


def test_create_user(client):
Expand Down
Loading