fix(ci): bound workflow setup steps
Some checks failed
CI/CD Pipeline / Run Tests (push) Successful in 1m46s
CI/CD Pipeline / Run Tests (pull_request) Failing after 3m59s
CI/CD Pipeline / Code Quality Checks (push) Failing after 4m7s
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 4m7s
CI/CD Pipeline / Telegram Notify Success (push) Has been skipped
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped

This commit is contained in:
2026-03-22 13:36:26 +01:00
parent 15285f2f49
commit ad5e20f6f8

View File

@@ -18,6 +18,7 @@ jobs:
lint: lint:
name: Code Quality Checks name: Code Quality Checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15
if: ${{ !contains(github.event.head_commit.message, '#no_lint') }} if: ${{ !contains(github.event.head_commit.message, '#no_lint') }}
env: env:
TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }} TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }}
@@ -34,12 +35,13 @@ jobs:
- name: Install Python and uv - name: Install Python and uv
run: | run: |
set -euo pipefail set -euo pipefail
apt-get update export DEBIAN_FRONTEND=noninteractive
apt-get install -y software-properties-common timeout 300s apt-get update
add-apt-repository -y ppa:deadsnakes/ppa timeout 300s apt-get install -y software-properties-common curl
apt-get update timeout 300s add-apt-repository -y ppa:deadsnakes/ppa
apt-get install -y python3.11 python3.11-venv timeout 300s apt-get update
curl -LsSf https://astral.sh/uv/install.sh | sh 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 - name: Create virtual environment and install dependencies
run: | run: |
@@ -93,6 +95,7 @@ jobs:
test: test:
name: Run Tests name: Run Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ !contains(github.event.head_commit.message, '#no_test') }} if: ${{ !contains(github.event.head_commit.message, '#no_test') }}
env: env:
TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }} TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }}
@@ -109,12 +112,13 @@ jobs:
- name: Install Python and uv - name: Install Python and uv
run: | run: |
set -euo pipefail set -euo pipefail
apt-get update export DEBIAN_FRONTEND=noninteractive
apt-get install -y software-properties-common timeout 300s apt-get update
add-apt-repository -y ppa:deadsnakes/ppa timeout 300s apt-get install -y software-properties-common curl
apt-get update timeout 300s add-apt-repository -y ppa:deadsnakes/ppa
apt-get install -y python3.11 python3.11-venv timeout 300s apt-get update
curl -LsSf https://astral.sh/uv/install.sh | sh 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 - name: Create virtual environment and install dependencies
run: | run: |