Skip to content

Commit

Permalink
workflows: ensure generated project is formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
ekilmer committed Mar 2, 2024
1 parent a943bdd commit db688c0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ jobs:
[[ -d /tmp/python-project/src/python_project ]] || { >&2 echo "not generated?"; exit 1; }
cd /tmp/python-project
git init . && git add . && git commit -m "Initial commit"
make dev
make reformat
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
make lint
make test
make package
Expand All @@ -41,8 +45,12 @@ jobs:
[[ ! -f /tmp/python-project/python_project/__main__.py ]] || { >&2 echo "not expecting main"; exit 1; }
cd /tmp/python-project
git init . && git add . && git commit -m "Initial commit"
make dev
make reformat
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
make lint
make test
make package
Expand All @@ -56,8 +64,12 @@ jobs:
[[ -d /tmp/tob-r-and-e-python-project/src/tob/r_and_e/python_project ]] || { >&2 echo "not generated?"; exit 1; }
cd /tmp/tob-r-and-e-python-project
git init . && git add . && git commit -m "Initial commit"
make dev
make reformat
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
make lint
make test
make package
Expand All @@ -71,8 +83,12 @@ jobs:
[[ -d /tmp/bit-trails/src/tob/r_and_e/bit_trails ]] || { >&2 echo "not generated?"; exit 1; }
cd /tmp/bit-trails
git init . && git add . && git commit -m "Initial commit"
make dev
make reformat
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
make lint
make test
make package
Expand All @@ -87,8 +103,12 @@ jobs:
[[ ! -f /tmp/python-project/.github/workflows/docs.yml ]] || { >&2 echo "not expecting docs.yml"; exit 1; }
cd /tmp/python-project
git init . && git add . && git commit -m "Initial commit"
make dev
make reformat
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
make lint
make test
make package
Expand Down

0 comments on commit db688c0

Please sign in to comment.