-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 2.04 KB
/
Copy pathcross-platform.yml
File metadata and controls
69 lines (59 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: cross-platform
# Free public standard-runner portability smoke. Runtime-heavy Codex/MCP jobs
# stay in validate.yml on Ubuntu, while this workflow proves repository
# metadata and Python validators are portable across the standard public
# Ubuntu, Windows, and macOS runner families.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '20 4 * * 0'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: cross-platform-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
smoke:
name: cross-platform smoke (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.13'
- name: Cross-platform metadata smoke
shell: bash
run: |
set -euo pipefail
python - <<'PY'
from pathlib import Path
import compileall
import json
required = [
"VERSION",
"README.md",
".agents/plugins/marketplace.json",
".github/branch-protection/main.json",
]
missing = [path for path in required if not Path(path).exists()]
if missing:
raise SystemExit("missing required path(s): " + ", ".join(missing))
json.loads(Path(".agents/plugins/marketplace.json").read_text(encoding="utf-8"))
json.loads(Path(".github/branch-protection/main.json").read_text(encoding="utf-8"))
if not compileall.compile_dir("scripts", quiet=1):
raise SystemExit("scripts/ Python compile failed")
print("cross-platform metadata smoke passed")
PY