diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ba62473..ef536ce 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,8 @@ on: - "**" tags-ignore: - "*.*" + pull_request: + types: [opened, reopened] jobs: tests: diff --git a/.github/workflows/type_check.yml b/.github/workflows/type_check.yml index ffde1e6..0a23fda 100644 --- a/.github/workflows/type_check.yml +++ b/.github/workflows/type_check.yml @@ -5,6 +5,8 @@ on: - "**" tags-ignore: - "*.*" + pull_request: + types: [opened, reopened] jobs: type_check: diff --git a/app/main.py b/app/main.py index e1b9e1e..ff6d0c1 100644 --- a/app/main.py +++ b/app/main.py @@ -20,7 +20,8 @@ app.add_middleware( CORSMiddleware, allow_origins=[ - str(origin).rstrip("/") for origin in get_settings().security.backend_cors_origins + str(origin).rstrip("/") + for origin in get_settings().security.backend_cors_origins ], allow_credentials=True, allow_methods=["*"],