ci: probe ubuntu-latest runner toolchain and egress (RED leg readback for #3)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: "toolchain probe (ubuntu-latest)"
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
probe:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "probe toolchain and egress"
|
||||
run: |
|
||||
set -u
|
||||
echo "whoami: $(whoami)"
|
||||
echo "uname: $(uname -a)"
|
||||
echo "runner_labels: ${RUNNER_LABELS:-unset}"
|
||||
python3 --version 2>/dev/null || echo "python3: ABSENT"
|
||||
python3 -m pytest --version 2>/dev/null || echo "pytest: ABSENT"
|
||||
for m in yaml jsonschema boto3 moto; do
|
||||
python3 -c "import $m" 2>/dev/null && echo "$m: OK" || echo "$m: ABSENT"
|
||||
done
|
||||
timeout 25 pip download --no-deps --dest /tmp/piptest pytest >/dev/null 2>&1 && echo "pypi: REACHABLE" || echo "pypi: UNREACHABLE"
|
||||
timeout 20 curl -sS -o /dev/null -w "pypi_index_http: %{http_code}\n" https://pypi.org/simple/pytest/ 2>/dev/null || echo "curl_to_pypi: FAILED"
|
||||
timeout 20 curl -sS -o /dev/null -w "github_http: %{http_code}\n" https://github.com 2>/dev/null || echo "curl_to_github: FAILED"
|
||||
Reference in New Issue
Block a user