27 lines
927 B
YAML
27 lines
927 B
YAML
name: Runner probe
|
|
|
|
on:
|
|
push:
|
|
branches: [ probe-runner-tools ]
|
|
|
|
jobs:
|
|
probe:
|
|
permissions:
|
|
contents: read
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Report which tools the runner image has
|
|
run: |
|
|
echo "PROBE os: $(. /etc/os-release && echo "$PRETTY_NAME")"
|
|
for tool in python3 pip3 python ruff mypy pytest shellcheck shfmt bash git node npm curl jq make; do
|
|
if command -v "$tool" >/dev/null 2>&1; then
|
|
echo "PROBE have $tool: $("$tool" --version 2>&1 | head -n 1)"
|
|
else
|
|
echo "PROBE missing $tool"
|
|
fi
|
|
done
|
|
echo "PROBE sudo: $(command -v sudo || echo none), user: $(id -un)"
|
|
python3 -m venv /tmp/probe-venv && /tmp/probe-venv/bin/pip install --quiet ruff==0.6.9 2>&1 | tail -n 1
|
|
echo "PROBE pip install of ruff in a venv: $?"
|
|
/tmp/probe-venv/bin/ruff --version
|