From 401d4e271733638153d19356e08ced1a5830d38b Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Thu, 28 May 2026 15:24:33 +0200 Subject: [PATCH] Fix CI: use system python3 + apt-get instead of actions/setup-python --- .gitea/workflows/ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4120ea3..cafff4a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -9,29 +9,29 @@ on: jobs: lint-and-test: runs-on: ubuntu-latest - container: python:3.11-slim defaults: run: working-directory: ./backend steps: - - name: Install git - working-directory: / - run: apt-get update && apt-get install -y git - - uses: actions/checkout@v4 + - name: Set up Python + run: | + apt-get update && apt-get install -y python3 python3-pip python3-venv || true + python3 --version + - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements-dev.txt + python3 -m pip install --upgrade pip + python3 -m pip install -r requirements.txt + python3 -m pip install -r requirements-dev.txt - name: Lint with ruff - run: ruff check . + run: python3 -m ruff check . - name: Format check with ruff - run: ruff format --check . + run: python3 -m ruff format --check . - name: Run tests - run: pytest -q + run: python3 -m pytest -q