diff --git a/.github/workflows/pre_commit.yaml b/.github/workflows/pre_commit.yaml index 15c591dd..cf7d996e 100644 --- a/.github/workflows/pre_commit.yaml +++ b/.github/workflows/pre_commit.yaml @@ -34,3 +34,9 @@ jobs: - name: Run pre-commit run: | pre-commit run --all-files + + - name: Test if pipeline is up-to-date + run: | + pip install click kfp==2.9.0 kfp.kubernetes + make pipeline + git diff --exit-code || (echo "Pipeline is not up-to-date. Please run 'make pipeline' and commit the changes." && exit 1) diff --git a/Makefile b/Makefile index 769cf6dd..8a1a5695 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ -.PHONY: standalone +.PHONY: standalone pipeline standalone: python3 pipeline.py gen-standalone ruff format standalone/standalone.py + +pipeline: + python3 pipeline.py