scale api to 0 #28
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: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
typecheck-api: | |
name: API type checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.6.14" | |
- name: Run type checking | |
run: | | |
cd api | |
uv run pyright | |
test-api: | |
name: API tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.6.14" | |
- name: Run tests | |
run: | | |
cd api | |
uv run pytest | |
env: | |
AUTH0_ALGORITHMS: ${{ secrets.AUTH0_ALGORITHMS }} | |
AUTH0_API_AUDIENCE: ${{ secrets.AUTH0_API_AUDIENCE }} | |
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }} | |
AUTH0_ISSUER: ${{ secrets.AUTH0_ISSUER }} | |
REPLICATE_API_TOKEN: ${{ secrets.REPLICATE_API_TOKEN }} |