Land v1.3.0-rc.1 adoption-surface program (OVK-PR1–PR9) #1
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: Repro baseline | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| record: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ['3.10', '3.12'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Sync package data and install | |
| run: | | |
| python -m pip install --upgrade pip | |
| python scripts/sync_package_data.py | |
| pip install --no-cache-dir -e '.[dev]' | |
| - name: Record reproducible baseline | |
| shell: bash | |
| env: | |
| PYTHONPATH: ${{ github.workspace }} | |
| run: | | |
| set +e | |
| py_minor=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") | |
| os_label=$(python -c "from scripts.record_repro_baseline import normalize_os_label; print(normalize_os_label())") | |
| baseline="docs/baselines/repro-${os_label}-py${py_minor}.json" | |
| python scripts/record_repro_baseline.py --skip-install --output "$baseline" | |
| status=$? | |
| set -e | |
| python scripts/record_repro_baseline.py --validate-only "$baseline" | |
| echo "recorder_exit=$status" | |
| echo "baseline_path=$baseline" >> "$GITHUB_STEP_SUMMARY" | |
| exit "$status" | |
| - name: Upload baseline artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: repro-baseline-${{ matrix.os }}-py${{ matrix.python-version }} | |
| path: docs/baselines/repro-*.json | |
| if-no-files-found: error |