mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 22:44:54 +03:00
Improved test coverage for production build/config
This commit is contained in:
parent
8bf4fba7b4
commit
50baf8c4df
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'])
|
Loading…
Reference in New Issue
Block a user