Skip to content

fix(auth): update tokenUrl in OAuth2PasswordBearer to match API prefix #17

fix(auth): update tokenUrl in OAuth2PasswordBearer to match API prefix

fix(auth): update tokenUrl in OAuth2PasswordBearer to match API prefix #17

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
validate:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: test_db
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
with:
enable-cache: true
- name: Install dependencies
run: uv sync
- name: Lint with Ruff
run: uv run ruff check .
- name: Check formatting with Ruff
run: uv run ruff format --check .
- name: Type check with Mypy
run: uv run mypy .
- name: Run tests with Pytest
env:
DATABASE_URL: postgresql+asyncpg://postgres:password@localhost:5432/test_db
run: uv run pytest tests/