From 30f31cc09649737f5b9905c2cf5bcbc5084dfeca Mon Sep 17 00:00:00 2001 From: Vickenty Zherebov Date: Mon, 19 Oct 2026 15:05:32 +0300 Subject: [PATCH] ci: reuse Forgejo checkout and runner Python 3.11 --- .forgejo/workflows/checks.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/checks.yml b/.forgejo/workflows/checks.yml index 0c69e35..0c90492 100644 --- a/.forgejo/workflows/checks.yml +++ b/.forgejo/workflows/checks.yml @@ -5,13 +5,18 @@ on: branches: [main] jobs: checks: + # Existing runner label maps to node:20-bookworm (Python 3.11.2 included). runs-on: docker + timeout-minutes: 20 steps: - - uses: https://github.com/actions/checkout@v4 - - uses: https://github.com/actions/setup-python@v5 - with: - python-version: "3.11" + - uses: https://code.forgejo.org/actions/checkout@v4 + - name: Prepare Python 3.11 environment + run: | + python3 -c 'import sys; assert sys.version_info[:2] == (3, 11)' + apt-get update -qq + apt-get install -y --no-install-recommends python3-venv + python3 -m venv .venv - name: Install development dependencies - run: python -m pip install -e '.[dev]' + run: .venv/bin/python -m pip install -e '.[dev]' - name: Lint, types and unit tests - run: make check + run: PATH="$PWD/.venv/bin:$PATH" make check