diff --git a/.github/actions/drf-integrations-framework-build/action.yml b/.github/actions/drf-integrations-framework-build/action.yml index 383153e..9513199 100644 --- a/.github/actions/drf-integrations-framework-build/action.yml +++ b/.github/actions/drf-integrations-framework-build/action.yml @@ -1,4 +1,5 @@ name: "DRF integrations framework Tests" +on: [push, pull_request] inputs: python-version: description: 'The version of python' @@ -20,6 +21,14 @@ runs: python -m pip install --upgrade pip python -m pip install tox tox-gh-actions + - name: Run pre-commit + shell: bash + run: pre-commit run --all-files + + - name: Check for missing migrations + shell: bash + run: python manage.py makemigrations --check --dry-run + - name: Test with tox shell: bash run: tox