Repository navigation
79 lines (75 loc) · 2.86 KB
/
Copy pathci.yaml
File metadata and controls
79 lines (75 loc) · 2.86 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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.14.7'
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '24.19.0'
- name: Require Node conformance runner
run: node --version
- name: Install build tools
run: python -m pip install --upgrade build twine
- name: Build sdist and wheel from sdist
run: python -m build
- name: Verify distribution file allowlists
run: python scripts/check_distribution_files.py
- name: Check distribution metadata
run: python -m twine check --strict dist/*
- name: Install wheel with published dependencies
run: python scripts/install_distribution.py wheel
- name: Test installed wheel
run: python -m unittest discover -s tests -v
- name: Install source distribution with published dependencies
run: python scripts/install_distribution.py sdist
- name: Test installed source distribution
run: python -m unittest discover -s tests -v
browser:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
UV_PYTHON: '3.14.7'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: '0.12.19'
enable-cache: true
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '24.19.0'
- run: uv python install
- run: uv sync --locked --group browser-tests
- run: uv run --no-sync python -m playwright install --with-deps chromium
- run: uv run --no-sync python scripts/compiler_conformance.py --browser --report build/compiler-parity-report.json
- run: uv run --no-sync python scripts/compiler_browser_smoke.py --report build/compiler-browser-report.json
- run: uv run --no-sync python scripts/measure_compiler.py --browser --repeats 3 --output build/compiler-measurements
- uses: actions/upload-artifact@v5
if: always()
with:
name: compiler-browser-report
path: |
build/compiler-browser-report.json
build/compiler-parity-report.json
build/compiler-measurements/report.json
if-no-files-found: error