ci: enforce targeted coverage floors (#246) (#256) #268
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: Reference examples | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| install-and-test: | |
| name: Build wheel, install examples, and test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.13" | |
| - name: Install framework build and test dependencies | |
| run: python -m pip install ".[dev,typer,rich,telemetry]" | |
| - name: Build and install the framework wheel | |
| run: | | |
| python -m build --wheel | |
| python -m pip uninstall --yes base-cli | |
| python -m pip install dist/*.whl | |
| - name: Validate reference-app structure | |
| run: python scripts/validate_examples.py | |
| - name: Install each example independently | |
| run: | | |
| for example in examples/*; do | |
| if [[ -f "$example/pyproject.toml" ]]; then | |
| python -m pip install "$example" | |
| fi | |
| done | |
| - name: Run reference-app tests | |
| run: | | |
| for tests in examples/*/tests; do | |
| python -m pytest "$tests" | |
| done |