Clean-machine quickstart lifecycle #15
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: Clean-machine quickstart lifecycle | |
| on: | |
| schedule: | |
| # Weekly clean-machine drift detection is sufficient during development; | |
| # release candidates can dispatch the same three-OS matrix on demand. | |
| - cron: "30 7 * * 2" # Tuesdays 07:30 UTC | |
| workflow_dispatch: | |
| concurrency: | |
| group: quickstart-lifecycle-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lifecycle: | |
| name: lifecycle (${{ matrix.os }}) | |
| # Windows otherwise inherits the legacy console code page. Keep the | |
| # harness, child CLIs, and uploaded JSON/log evidence on one UTF-8 contract. | |
| env: | |
| PYTHONUTF8: "1" | |
| PYTHONIOENCODING: "utf-8" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Build wheel | |
| run: | | |
| python -m pip install build | |
| python -m build --wheel --outdir lifecycle-dist | |
| - name: Full lifecycle (Linux) | |
| if: runner.os == 'Linux' | |
| run: >- | |
| python scripts/quickstart_lifecycle.py | |
| --wheel "lifecycle-dist/*.whl" | |
| --work-dir "runs/lifecycle" | |
| --install-browser | |
| --browser-with-deps | |
| - name: Full lifecycle (macOS / Windows) | |
| if: runner.os != 'Linux' | |
| run: >- | |
| python scripts/quickstart_lifecycle.py | |
| --wheel "lifecycle-dist/*.whl" | |
| --work-dir "runs/lifecycle" | |
| --install-browser | |
| - name: Upload lifecycle evidence | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: quickstart-lifecycle-${{ matrix.os }} | |
| path: | | |
| runs/lifecycle/summary.json | |
| runs/lifecycle/logs/*.log | |
| runs/lifecycle/artifacts/**/REPORT.md | |
| runs/lifecycle/artifacts/**/report.json | |
| runs/lifecycle/artifacts/**/patch.json | |
| if-no-files-found: warn |