Files
zulip-platform-plugins/.gitea/workflows/ci.yml
T
MumuniandClaude Opus 5 f477a6a252
CI / validate (pull_request) Failing after 5s
fix(ci): install python3+PyYAML in the job when the runner image lacks them
Runner probe on PR #35 (run 461, log job 1979): checkout@v4 succeeds (network
fine) but the act container has node:20 + git 2.52 and NO python3 — 'python3
--version' exited 127, which was the failing check. Every validation step is
python3-based, so make step 2 self-provisioning via apt when missing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-25 19:20:23 +00:00

49 lines
1.3 KiB
YAML

# Gitea Actions CI — zulip-platform-plugins
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
tags:
- v*
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Ensure python3 available (runner image may lack it)
run: |
if command -v python3 >/dev/null 2>&1; then
python3 --version
else
. /etc/os-release
echo "python3 missing — installing on $ID $VERSION_CODENAME"
apt-get update -qq
apt-get install -y -qq python3 python3-yaml
python3 --version
python3 -c "import yaml" && echo "PyYAML OK"
fi
- run: node --version
- name: Python syntax check
run: |
python3 -m py_compile plugins/platforms/zulip/adapter.py && echo "✅ adapter.py OK"
python3 -m py_compile agent-zero-zulip/src/agent_zero_zulip/adapter.py && echo "✅ a2a adapter OK"
- name: Workflow YAML parse check
run: python3 ci_check.py workflows
- name: Config validation
run: python3 ci_check.py config
- name: No secrets check
run: python3 ci_check.py secrets
- name: Deploy script syntax
run: bash -n scripts/deploy.sh && echo "✅ deploy.sh syntax OK"