Merge pull request #7 from thisiscam/example-notebooks #25
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
| # Fast PR/push gate. Installs with uv so the oryx git dependency + tfp-nightly | |
| # resolve correctly (plain pip pulls broken stock oryx). Runs only the fast | |
| # tests; the heavy `slow`-marked suite runs in test-full.yml, since the full | |
| # suite exceeds GitHub's 6h job limit on 2-core runners. | |
| name: tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12"] # pyproject requires-python = ">=3.11" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install | |
| run: uv sync --extra test --locked | |
| - name: Run tests (fast) | |
| run: uv run --extra test python -m pytest -v -m "not slow" -n auto |