mirror of
https://github.com/aserper/masto-rss.git
synced 2025-12-15 04:25:24 +00:00
fix(ci): usage of uv run and docker env path
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user