Files
git-workflows/.gitea/workflows/runner-probe.yml
T
Tirsvad 406b4322f9
Runner probe / probe (push) Failing after 10s
Throwaway: probe PyPI tool install (issue 16)
2026-10-10 13:47:02 +08:00

24 lines
900 B
YAML

name: Runner probe
on:
push:
branches: [ probe-runner-tools ]
jobs:
probe:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Install the quality tools from PyPI into a virtual environment
run: |
python3 -m venv /tmp/qc && /tmp/qc/bin/pip install --quiet ruff==0.6.9 mypy==1.11.2 shellcheck-py==0.10.0.1 shfmt-py==3.9.0.1 2>&1 | tail -n 3
echo "PROBE pip exit: $?"
for tool in ruff mypy shellcheck shfmt; do
echo "PROBE $tool: $(/tmp/qc/bin/$tool --version 2>&1 | head -n 2 | tr '\n' ' ')"
done
printf '#!/usr/bin/env bash\necho $1\n' > /tmp/bad.sh
/tmp/qc/bin/shellcheck /tmp/bad.sh; echo "PROBE shellcheck exit on a bad script: $?"
printf 'import os\nx=1\n' > /tmp/bad.py
/tmp/qc/bin/ruff check /tmp/bad.py; echo "PROBE ruff exit on a bad file: $?"