provider/vertex (#67) #294
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 | |
| permissions: | |
| contents: read | |
| actions: read | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| prek: | |
| name: Prek Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: .python-version | |
| - name: Install Python dependencies | |
| run: uv sync --locked --dev | |
| env: | |
| UV_PROJECT_ENVIRONMENT: .venv | |
| - name: Run prek | |
| uses: j178/prek-action@v1 | |
| - name: Verify generated docs and build artifacts are up-to-date | |
| run: | | |
| uv run python scripts/generate_framework_docs.py | |
| uv run mkdocs build --strict | |
| git diff --exit-code | |
| run-tests: | |
| name: Run Python Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| needs: prek | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Python dependencies | |
| run: uv sync --locked --dev | |
| env: | |
| UV_PROJECT_ENVIRONMENT: .venv | |
| - name: Run pytest | |
| run: uv run coverage run -m pytest |