fix(ci): usage of uv run and docker env path

This commit is contained in:
aserper
2025-12-14 00:09:07 -05:00
parent c7850ba05f
commit 49fd546b5e
2 changed files with 8 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ jobs:
- name: Run unit tests
run: |
pytest test_bot.py -m "not integration" --cov=bot --cov=main --cov-report=xml --cov-report=term
uv run pytest test_bot.py -m "not integration" --cov=bot --cov=main --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
@@ -73,7 +73,7 @@ jobs:
- name: Run integration tests
run: |
pytest test_integration.py --cov=bot --cov-report=xml --cov-report=term --cov-fail-under=70
uv run pytest test_integration.py --cov=bot --cov-report=xml --cov-report=term --cov-fail-under=70
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
@@ -108,15 +108,15 @@ jobs:
- name: Run ruff check
run: |
ruff check .
uv run ruff check .
- name: Run ruff format
run: |
ruff format --check .
uv run ruff format --check .
- name: Run mypy
run: |
mypy bot.py main.py --ignore-missing-imports
uv run mypy bot.py main.py --ignore-missing-imports
continue-on-error: true
docker-build-test:

View File

@@ -19,6 +19,9 @@ COPY pyproject.toml uv.lock /app/
# Install dependencies
RUN uv sync --frozen --no-dev
# Place executables in the environment at the front of the path
ENV PATH="/app/.venv/bin:$PATH"
# Copy the application code
COPY . /app