Unverified Commit d25ad34c authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

[CI] add dependency table sync verification (#12364)

* add dependency table sync verification

* improve the message

* improve the message

* revert

* ready to merge
parent 57461ac0
...@@ -419,6 +419,7 @@ jobs: ...@@ -419,6 +419,7 @@ jobs:
- run: python utils/check_dummies.py - run: python utils/check_dummies.py
- run: python utils/check_repo.py - run: python utils/check_repo.py
- run: python utils/check_inits.py - run: python utils/check_inits.py
- run: make deps_table_check_updated
check_repository_consistency: check_repository_consistency:
working_directory: ~/transformers working_directory: ~/transformers
......
...@@ -21,6 +21,12 @@ modified_only_fixup: ...@@ -21,6 +21,12 @@ modified_only_fixup:
deps_table_update: deps_table_update:
@python setup.py deps_table_update @python setup.py deps_table_update
deps_table_check_updated:
@md5sum src/transformers/dependency_versions_table.py > md5sum.saved
@python setup.py deps_table_update
@md5sum -c --quiet md5sum.saved || (printf "\nError: the version dependency table is outdated.\nPlease run 'make fixup' or 'make style' and commit the changes.\n\n" && exit 1)
@rm md5sum.saved
# autogenerating code # autogenerating code
autogenerate_code: deps_table_update autogenerate_code: deps_table_update
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment