Repository navigation
107 lines (100 loc) · 3.06 KB
/
Copy pathpyprocCompatibility.yml
File metadata and controls
107 lines (100 loc) · 3.06 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: pyproc npm compatibility
on:
pull_request:
paths:
- "package.json"
- "landing/package.json"
- "package-lock.json"
- "landing/runtime-manifest.json"
- "landing/svelte.config.js"
- "landing/vite.config.ts"
- "landing/vitest.config.ts"
- "landing/src/app.d.ts"
- "landing/src/lib/notebook/engine/**"
- ".github/scripts/pyprocSmoke.mjs"
- ".github/scripts/pyprocForkSmoke.mjs"
- ".github/workflows/pyprocCompatibility.yml"
push:
branches:
- master
paths:
- "package.json"
- "landing/package.json"
- "package-lock.json"
- "landing/runtime-manifest.json"
- "landing/svelte.config.js"
- "landing/vite.config.ts"
- "landing/vitest.config.ts"
- "landing/src/app.d.ts"
- "landing/src/lib/notebook/engine/**"
- ".github/scripts/pyprocSmoke.mjs"
- ".github/scripts/pyprocForkSmoke.mjs"
- ".github/workflows/pyprocCompatibility.yml"
workflow_dispatch: {}
permissions:
contents: read
concurrency:
group: pyproc-compatibility-${{ github.ref }}
cancel-in-progress: true
jobs:
gate-a:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
cache: npm
- run: npm ci
- name: Install matching Pyodide package
run: |
PYODIDE_VERSION="$(node -p "require('./landing/runtime-manifest.json').pyodide")"
npm install --no-save --package-lock=false "pyodide@$PYODIDE_VERSION"
- name: Gate A, Node Pyodide public contract
run: node .github/scripts/pyprocSmoke.mjs
landing:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
cache: npm
- run: npm ci
- name: Check, test, and build landing
run: |
npm --workspace landing run check
npm --workspace landing run test
npm --workspace landing run build
gate-b:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
cache: npm
- run: npm ci
- name: Install Playwright Chromium
run: |
npm install --no-save --package-lock=false playwright@1.61.1
npx playwright install --with-deps chromium
- name: Gate B, isolated Chromium process contract
run: node .github/scripts/pyprocForkSmoke.mjs
compatibility:
if: ${{ always() }}
needs: [gate-a, landing, gate-b]
runs-on: ubuntu-latest
steps:
- name: Require every pyproc compatibility gate
env:
GATE_A_RESULT: ${{ needs.gate-a.result }}
LANDING_RESULT: ${{ needs.landing.result }}
GATE_B_RESULT: ${{ needs.gate-b.result }}
run: |
test "$GATE_A_RESULT" = "success"
test "$LANDING_RESULT" = "success"
test "$GATE_B_RESULT" = "success"