From 05404bd65d0ef9d15f43bef4c7015dbf8216b236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=95=D0=BC=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C=D1=8F=D0=BD=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 3 Sep 2026 11:24:12 +0300 Subject: [PATCH] Fix CI: use shell steps instead of JS actions (Alpine runner has no node) --- .gitea/workflows/ci.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index daa86ea..2f26323 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,24 +10,27 @@ jobs: checks: runs-on: docker steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Install Python and tools + run: | + apk add --no-cache python3 py3-pip git - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" + - name: Checkout + run: | + git init -q + git remote add origin "${GITHUB_SERVER_URL:-http://10.8.0.52:8080}/$GITHUB_REPOSITORY.git" + git fetch -q --depth 1 origin "$GITHUB_SHA" + git checkout -q FETCH_HEAD - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install -e ".[dev]" + python3 -m pip install --upgrade pip + python3 -m pip install -e ".[dev]" - name: Lint (ruff) - run: ruff check src tests + run: python3 -m ruff check src tests - name: Typecheck (mypy) - run: mypy src + run: python3 -m mypy src - name: Tests (pytest + coverage) - run: python -m pytest -v --cov=selectel_ml_tui --cov-report=term-missing \ No newline at end of file + run: python3 -m pytest -v --cov=selectel_ml_tui --cov-report=term-missing \ No newline at end of file