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
|
image: python:3.12-slim
|
||||||
before_script:
|
before_script:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv venv
|
- uv sync --extra dev
|
||||||
- source .venv/bin/activate
|
|
||||||
- uv sync --dev
|
|
||||||
|
|
||||||
# Linting stage
|
# Linting stage
|
||||||
ruff-lint:
|
ruff-lint:
|
||||||
@@ -55,9 +53,7 @@ pyright:
|
|||||||
stage: test
|
stage: test
|
||||||
before_script:
|
before_script:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv venv
|
- uv sync --extra dev
|
||||||
- source .venv/bin/activate
|
|
||||||
- uv sync --dev
|
|
||||||
script:
|
script:
|
||||||
- uv run pytest --cov=fastapi_traffic --cov-report=xml --cov-report=term
|
- uv run pytest --cov=fastapi_traffic --cov-report=xml --cov-report=term
|
||||||
coverage: '/TOTAL.*\s+(\d+%)/'
|
coverage: '/TOTAL.*\s+(\d+%)/'
|
||||||
|
|||||||
Reference in New Issue
Block a user