Skip to content

removed fastapi-auth0 in favor of a custom solution with better control #231

removed fastapi-auth0 in favor of a custom solution with better control

removed fastapi-auth0 in favor of a custom solution with better control #231

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
branches: [ "main" ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11", "3.10"]
redis-version: ["7"]
env:
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_API_AUDIENCE: ${{ secrets.AUTH0_API_AUDIENCE }}
AUTH0_SPA_CLIENT_ID: ${{ secrets.AUTH0_SPA_CLIENT_ID }}
AUTH0_SPA_CLIENT_SECRET: ${{ secrets.AUTH0_SPA_CLIENT_SECRET }}
FIRST_SUPERUSER: ${{ secrets.FIRST_SUPERUSER }}
FIRST_SUPERUSER_PASSWORD: ${{ secrets.FIRST_SUPERUSER_PASSWORD }}
TEST_NORMAL_USER: ${{ secrets.TEST_NORMAL_USER }}
TEST_NORMAL_USER_PASSWORD: ${{ secrets.TEST_NORMAL_USER_PASSWORD }}
GOOGLE_CLOUD_API_KEY: ${{ secrets.GOOGLE_CLOUD_API_KEY }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
SMTP_USER: ${{ secrets.SMTP_USER }}
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip \
&& python -m pip install poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-root
- name: Run Python Tests
run: |
bash ./scripts/test-cov.sh
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
verbose: false