ci: reuse Forgejo checkout and runner Python 3.11

This commit is contained in:
Vickenty Zherebov 2026-10-19 15:05:32 +03:00
parent 4da3dd68c6
commit 30f31cc096

View file

@ -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