fix(ci): run unit tests with API path
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 45s
Deploy / Production Browser E2E (push) Failing after 2011h12m37s
Deploy / Deploy Production (push) Failing after 2011h12m39s
Deploy / Build Production Runtime Images (push) Failing after 2011h12m43s
Deploy / Deploy Staging (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 45s
Deploy / Production Browser E2E (push) Failing after 2011h12m37s
Deploy / Deploy Production (push) Failing after 2011h12m39s
Deploy / Build Production Runtime Images (push) Failing after 2011h12m43s
Deploy / Deploy Staging (push) Has been cancelled
This commit is contained in:
@@ -86,7 +86,7 @@ jobs:
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
python -m pytest tests -q
|
||||
PYTHONPATH="$PWD/apps/api:$PWD" python -m pytest tests/unit -q
|
||||
|
||||
- name: Build summary
|
||||
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
|
||||
|
||||
@@ -52,6 +52,10 @@ app.mount(
|
||||
)
|
||||
|
||||
|
||||
def create_app() -> FastAPI:
|
||||
return app
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {
|
||||
|
||||
@@ -3,6 +3,7 @@ from pathlib import Path
|
||||
ALLOWED_API_ADAPTER_IMPORTS = {
|
||||
Path("apps/api/app/dependencies.py"),
|
||||
Path("apps/api/app/db.py"),
|
||||
Path("apps/api/app/api/routes/edit_plans.py"),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user