From 50baf8c4df5e0e76c84948c1e5ef9906d2880e9e Mon Sep 17 00:00:00 2001 From: Ahmed Date: Fri, 27 Oct 2023 17:36:12 +1100 Subject: [PATCH] Improved test coverage for production build/config --- .github/workflows/ci.yml | 1 + tests/test_docker.sh | 2 +- tests/test_production_build.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98a3a509b..d126a6440 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,6 +114,7 @@ jobs: - name: Bare Metal ${{ matrix.script.name }} run: sh tests/test_bare.sh ${{ matrix.script.args }} + production-check: runs-on: ubuntu-latest steps: diff --git a/tests/test_docker.sh b/tests/test_docker.sh index c4129bcbe..26bbdf4a5 100755 --- a/tests/test_docker.sh +++ b/tests/test_docker.sh @@ -32,7 +32,7 @@ docker compose -f local.yml run django python manage.py makemessages --all # Make sure the check doesn't raise any warnings docker compose -f local.yml run django python manage.py check --fail-level WARNING -# Check for deployment-specific issues +# Check for deployment specific issues docker compose -f local.yml run django python manage.py check --deploy # Generate the HTML for the documentation diff --git a/tests/test_production_build.py b/tests/test_production_build.py index 5abe98a57..3ae9921ec 100644 --- a/tests/test_production_build.py +++ b/tests/test_production_build.py @@ -1,5 +1,6 @@ import subprocess + def test_production_check(): # This will raise an exception if there's an error subprocess.check_call(['python', 'manage.py', 'check', '--deploy']) \ No newline at end of file