From ad5e20f6f8591e1ba60f7a0b0add80df5090d303 Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchriakov Date: Sun, 22 Mar 2026 13:36:26 +0100 Subject: [PATCH] fix(ci): bound workflow setup steps --- .gitea/workflows/ci-cd.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 39bc1fc..5e68d0a 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -18,6 +18,7 @@ jobs: lint: name: Code Quality Checks runs-on: ubuntu-latest + timeout-minutes: 15 if: ${{ !contains(github.event.head_commit.message, '#no_lint') }} env: TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }} @@ -34,12 +35,13 @@ jobs: - name: Install Python and uv run: | set -euo pipefail - apt-get update - apt-get install -y software-properties-common - add-apt-repository -y ppa:deadsnakes/ppa - apt-get update - apt-get install -y python3.11 python3.11-venv - curl -LsSf https://astral.sh/uv/install.sh | sh + export DEBIAN_FRONTEND=noninteractive + timeout 300s apt-get update + timeout 300s apt-get install -y software-properties-common curl + timeout 300s add-apt-repository -y ppa:deadsnakes/ppa + timeout 300s apt-get update + timeout 300s apt-get install -y python3.11 python3.11-venv + timeout 180s bash -lc 'curl -LsSf https://astral.sh/uv/install.sh | sh' - name: Create virtual environment and install dependencies run: | @@ -93,6 +95,7 @@ jobs: test: name: Run Tests runs-on: ubuntu-latest + timeout-minutes: 20 if: ${{ !contains(github.event.head_commit.message, '#no_test') }} env: TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }} @@ -109,12 +112,13 @@ jobs: - name: Install Python and uv run: | set -euo pipefail - apt-get update - apt-get install -y software-properties-common - add-apt-repository -y ppa:deadsnakes/ppa - apt-get update - apt-get install -y python3.11 python3.11-venv - curl -LsSf https://astral.sh/uv/install.sh | sh + export DEBIAN_FRONTEND=noninteractive + timeout 300s apt-get update + timeout 300s apt-get install -y software-properties-common curl + timeout 300s add-apt-repository -y ppa:deadsnakes/ppa + timeout 300s apt-get update + timeout 300s apt-get install -y python3.11 python3.11-venv + timeout 180s bash -lc 'curl -LsSf https://astral.sh/uv/install.sh | sh' - name: Create virtual environment and install dependencies run: |