diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5eb3421..304fcff 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -92,13 +92,10 @@ jobs: run: | pytest --verbose --tb=short --cov=. --cov-report=xml --cov-report=term - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - file: ./coverage.xml - flags: unittests - name: codecov-umbrella - fail_ci_if_error: false + - name: Upload coverage reports to Codecov with GitHub Action + uses: codecov/codecov-action@v5 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Comment PR with test results uses: actions/github-script@v7 @@ -158,7 +155,7 @@ jobs: run: | # Install compatible versions for safety pip install "typer<0.13.0" "safety==2.4.0b2" || pip install "safety<3.0.0" - + # Run safety check with fallback safety check || { echo "Safety check failed, trying pip-audit as fallback..." diff --git a/SecCodeSmithBackend/settings.py b/SecCodeSmithBackend/settings.py index b28c11e..df42fbc 100644 --- a/SecCodeSmithBackend/settings.py +++ b/SecCodeSmithBackend/settings.py @@ -20,7 +20,7 @@ "django-insecure-kxr)0+uz_9=jdz0elc)-cbmxc2k5@(*)=cym0#r$s&(x#qzy&p", ), ALLOWED_HOSTS=(list, ["*"]), - DATABASE_TYPE=(str, "pgsql"), + DATABASE_TYPE=(str, ""), DATABASE_USER=(str, "postgres"), DATABASE_PASSWORD=(str, "postgres"), DATABASE_HOST=(str, "localhost"),