Fix trailing whitespace in AGENTS.md docstring example #260
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Show Python version | |
| run: python -V | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Pre-commit (lint + format + misc) | |
| run: | | |
| pre-commit run --all-files --show-diff-on-failure --color=always | |
| - name: Run tests | |
| run: python -m pytest -q | |
| - name: Upload coverage.xml | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| # Use a unique artifact name per job to avoid 409 Conflict across matrix entries | |
| name: coverage-xml-${{ matrix.os }}-py${{ matrix.python-version }} | |
| path: coverage.xml | |
| if-no-files-found: warn | |
| retention-days: 7 | |
| docker-build-push: | |
| name: Build & Push Docker Image | |
| runs-on: ubuntu-latest | |
| needs: tests | |
| permissions: | |
| contents: 'read' | |
| id-token: 'write' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - id: auth | |
| uses: google-github-actions/auth@v2 | |
| with: | |
| workload_identity_provider: projects/316518955652/locations/global/workloadIdentityPools/github-pool/providers/github-oidc | |
| service_account: kame-house-oidc@kame-457417.iam.gserviceaccount.com | |
| create_credentials_file: true | |
| export_environment_variables: true | |
| - name: Configure Docker for Artifact Registry | |
| run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet | |
| - name: Build and Push Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| tags: us-central1-docker.pkg.dev/kame-457417/python-dsa/python-dsa:latest |