name: Checks on: pull_request: push: 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://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: .venv/bin/python -m pip install -e '.[dev]' - name: Lint, types and unit tests run: PATH="$PWD/.venv/bin:$PATH" make check