fix: use uv sync --extra dev to install pyright and other dev tools
This commit is contained in:
@@ -18,9 +18,7 @@ cache:
|
||||
image: python:3.12-slim
|
||||
before_script:
|
||||
- pip install uv
|
||||
- uv venv
|
||||
- source .venv/bin/activate
|
||||
- uv sync --dev
|
||||
- uv sync --extra dev
|
||||
|
||||
# Linting stage
|
||||
ruff-lint:
|
||||
@@ -55,9 +53,7 @@ pyright:
|
||||
stage: test
|
||||
before_script:
|
||||
- pip install uv
|
||||
- uv venv
|
||||
- source .venv/bin/activate
|
||||
- uv sync --dev
|
||||
- uv sync --extra dev
|
||||
script:
|
||||
- uv run pytest --cov=fastapi_traffic --cov-report=xml --cov-report=term
|
||||
coverage: '/TOTAL.*\s+(\d+%)/'
|
||||
|
||||
Reference in New Issue
Block a user