Repository navigation
chore(REL-03): prepare compiler and browser APIs for 0.2.0 #42
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |