diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 218baaf..66c1e47 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -13,15 +13,14 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.12" - + # No actions/setup-python: the runner image already ships Python 3.12, + # and older act_runner engines mishandle setup-python's PATH. Install + # into the ephemeral job container's system Python — the pylint/pyright + # console scripts land on /usr/local/bin (on PATH) so the steps below + # still resolve. --break-system-packages is safe: the container is + # disposable. - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements-dev.txt + run: python3 -m pip install --break-system-packages -r requirements-dev.txt - name: Run pylint run: |