From a402c7a723caa6fa95bf0e200fd71af528d16f33 Mon Sep 17 00:00:00 2001 From: Del Hyman-Jones Date: Fri, 30 Aug 2024 10:36:03 +0100 Subject: [PATCH] Added migration check and lint check to Github actions. remove migrations temporarily to prove that the migration check in Github is working. --- .../actions/drf-integrations-framework-build/action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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