diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 45dbdc1..ae63c08 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -100,3 +100,10 @@ jobs: - name: "Run linters and formatters" run: "uvx nox --session format lint" + + - name: "Check for any unstaged changes" + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "#### Format or Lint changes found. Please run 'uvx nox' locally and push the changes." >> $GITHUB_STEP_SUMMARY + exit 1 + fi