From a67e2bb762c448c3153eaf3055ba048aea549c27 Mon Sep 17 00:00:00 2001 From: cryptorugmunch Date: Thu, 2 Jul 2026 23:51:51 +0200 Subject: [PATCH 1/2] ci(forgejo): install Node.js before actions/checkout@v4 --- .forgejo/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 2291826..159168b 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -16,6 +16,14 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update + apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 - name: Install system deps @@ -50,6 +58,13 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update && apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 - name: Install uv + setup run: | @@ -67,6 +82,13 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update && apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 - name: Install uv + setup run: | @@ -85,6 +107,13 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update && apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -100,6 +129,13 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update && apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 - name: Install uv + setup run: | From f08fc04e6635f7afe86946a27132dd7fd17ce957 Mon Sep 17 00:00:00 2001 From: cryptorugmunch Date: Thu, 2 Jul 2026 23:51:51 +0200 Subject: [PATCH 2/2] ci(forgejo): install Node.js before actions/checkout@v4 --- .forgejo/workflows/ci.yml | 51 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 2291826..6bf7ab8 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -10,12 +10,23 @@ on: pull_request: branches: [main] +env: + UV_BIN: /root/.local/bin/uv + jobs: lint: runs-on: docker-x64 container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update + apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 - name: Install system deps @@ -27,7 +38,8 @@ jobs: - name: Install uv run: | curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.local/bin" >> $GITHUB_PATH + ln -sf /root/.local/bin/uv /usr/local/bin/uv + ln -sf /root/.local/bin/uvx /usr/local/bin/uvx - name: Setup Python run: | @@ -50,12 +62,20 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update && apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 - name: Install uv + setup run: | apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && rm -rf /var/lib/apt/lists/* curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.local/bin" >> $GITHUB_PATH + ln -sf /root/.local/bin/uv /usr/local/bin/uv + ln -sf /root/.local/bin/uvx /usr/local/bin/uvx uv python install 3.11 uv venv --python 3.11 .venv uv pip install --python .venv/bin/python -e ".[dev]" @@ -67,12 +87,20 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update && apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 - name: Install uv + setup run: | apt-get update && apt-get install -y --no-install-recommends gcc libpq-dev curl ca-certificates && rm -rf /var/lib/apt/lists/* curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.local/bin" >> $GITHUB_PATH + ln -sf /root/.local/bin/uv /usr/local/bin/uv + ln -sf /root/.local/bin/uvx /usr/local/bin/uvx uv python install 3.11 uv venv --python 3.11 .venv uv pip install --python .venv/bin/python -e ".[dev]" @@ -85,6 +113,13 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update && apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -100,12 +135,20 @@ jobs: container: image: python:3.11-slim steps: + - name: Install Node.js for actions/checkout + run: | + apt-get update && apt-get install -y --no-install-recommends curl ca-certificates + curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + apt-get install -y --no-install-recommends nodejs + rm -rf /var/lib/apt/lists/* + - uses: actions/checkout@v4 - name: Install uv + setup run: | apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && rm -rf /var/lib/apt/lists/* curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.local/bin" >> $GITHUB_PATH + ln -sf /root/.local/bin/uv /usr/local/bin/uv + ln -sf /root/.local/bin/uvx /usr/local/bin/uvx uv python install 3.11 uv venv --python 3.11 .venv uv pip install --python .venv/bin/python bandit