Skip to content

Commit

Permalink
Added migration check and lint check to Github actions.
Browse files Browse the repository at this point in the history
remove migrations temporarily to prove that the migration check in Github is working.
  • Loading branch information
Del Hyman-Jones committed Aug 30, 2024
1 parent 6048b77 commit a402c7a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/drf-integrations-framework-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "DRF integrations framework Tests"
on: [push, pull_request]
inputs:
python-version:
description: 'The version of python'
Expand All @@ -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

0 comments on commit a402c7a

Please sign in to comment.