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