docs: Add more Bedrock FAQ content given error messages (#29) #52
This file contains 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: Test - Python | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main", "rc-*"] | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
release: | |
types: [published] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
config: | |
- { python-version: "3.9", test_google: false, test_azure: false } | |
- { python-version: "3.10", test_google: false, test_azure: false } | |
- { python-version: "3.11", test_google: false, test_azure: false } | |
- { python-version: "3.12", test_google: true, test_azure: true } | |
- { python-version: "3.13", test_google: false, test_azure: false } | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }} | |
# Free tier of Google is rate limited, so we only test on 3.12 | |
TEST_GOOGLE: ${{ matrix.config.test_google }} | |
# Free tier of Azure is rate limited, so we only test on 3.12 | |
TEST_AZURE: ${{ matrix.config.test_azure }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: π Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: π Set up Python ${{ matrix.config.python-version }} | |
run: uv python install ${{matrix.config.python-version }} | |
- name: π¦ Install the project | |
run: uv sync --python ${{ matrix.config.python-version }} --all-extras | |
- name: π§ͺ Check tests | |
run: make check-tests | |
- name: π Check types | |
run: make check-types | |
- name: π Check formatting | |
run: make check-format |