Build(deps): Bump actions/deploy-pages from 4 to 5 (#480) #206
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: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| env: | |
| AZURE_OPENAI_API_KEY: dummy | |
| AZURE_OPENAI_ENDPOINT: https://example.openai.azure.com/ | |
| AZURE_OPENAI_MODEL_NAME: gpt-4o | |
| AZURE_OPENAI_CHAT_DEPLOYMENT_NAME: dummy | |
| AZURE_OPENAI_API_VERSION: 2024-12-01-preview | |
| AZURE_AI_SERVICE_API_KEY: dummy | |
| AZURE_AI_SERVICE_ENDPOINT: https://example.cognitiveservices.azure.com/ | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| run: python -m pip install --upgrade pip poetry black==26.3.1 ruff==0.15.12 | |
| - name: Install dependencies | |
| run: poetry install --with dev --no-interaction | |
| - name: Run lint | |
| run: ruff check src tests | |
| - name: Check formatting | |
| run: black --check src tests | |
| - name: Run tests | |
| run: poetry run pytest -m "not api_key_required" |