Skip to content

Commit

Permalink
[CI] Add check for missing migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Elrod <[email protected]>
  • Loading branch information
relrod committed Jun 6, 2024
1 parent e58b4fb commit 73ffddd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
fail-fast: false
matrix:
tests:
- env: check
python-version: "3.11"
sonar: false
- env: py39
python-version: "3.9"
sonar: false
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,17 @@ legacy_tox_ini = """
[testenv]
deps =
-r{toxinidir}/requirements/requirements_all.txt
-r{toxinidir}/requirements/requirements_dev.txt
-r{toxiniditr}/requirements/requirements_dev.txt
allowlist_externals = sh
commands = sh -c 'make postgres && pytest -n auto --cov=. --cov-report=xml:coverage.xml --cov-report=html --cov-report=json --cov-branch {env:ANSIBLE_BASE_PYTEST_ARGS} {env:ANSIBLE_BASE_TEST_DIRS:test_app/tests} {posargs}'
[testenv:check]
deps =
-r{toxinidir}/requirements/requirements_all.txt
commands = python3 manage.py check
-r{toxinidir}/requirements/requirements_all.txt
-r{toxiniditr}/requirements/requirements_dev.txt
commands =
python3 manage.py check
python3 manage.py makemigrations --check
[testenv:flake8]
deps =
Expand Down

0 comments on commit 73ffddd

Please sign in to comment.