Update github workflows

This commit is contained in:
Orfeo Terkuci
2026-03-24 20:04:18 +01:00
parent 466cc51bc3
commit 8414307708
2 changed files with 14 additions and 9 deletions
+13 -8
View File
@@ -26,14 +26,19 @@ jobs:
backend:
name: Backend Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.11"
- run: pip install -r requirements.txt
- run: python -c "from services.fetchers.retry import with_retry; from services.env_check import validate_env; print('Module imports OK')"
- run: python -m pytest tests/ -v --tb=short || echo "No pytest tests found (OK)"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Install dependencies
run: uv sync --group test
- run: uv run --directory backend python -c "from services.fetchers.retry import with_retry; from services.env_check import validate_env; print('Module imports OK')"
- name: Run tests
run: uv run --directory backend pytest tests -v --tb=short
+1 -1
View File
@@ -171,7 +171,7 @@ jobs:
id: build
uses: docker/build-push-action@v5.0.0
with:
context: ./backend
context: .
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}