diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8eb972..91b4308 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/Dockerfile b/Dockerfile index b2ba1a8..89f8530 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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