Skip to content

Commit

Permalink
Fixed the tensorflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
liferoad committed Nov 26, 2024
1 parent a0fdb6b commit 1875ee1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sdks/python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -407,16 +407,18 @@ commands =
[testenv:py39-tensorflow-212]
deps =
212:
tensorflow>=2.12rc1,<2.13
# Help pip resolve conflict with typing-extensions for old version of TF https://github.com/apache/beam/issues/30852
pydantic<2.7
protobuf==4.25.5
extras = test,gcp,ml_test
extras = test,gcp
commands_pre =
pip install -U 'protobuf==4.25.5'
commands =
# Log tensorflow version for debugging
/bin/sh -c "pip freeze | grep -E tensorflow"
# Run all Tensorflow unit tests
# Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
/bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 1 -m uses_tf {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
/bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_tf {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'

[testenv:py39-xgboost-{160,170}]
deps =
Expand Down

0 comments on commit 1875ee1

Please sign in to comment.