Skip to content

Commit

Permalink
tf setup and teardown for integration tests (#2366)
Browse files Browse the repository at this point in the history
  • Loading branch information
SYangster authored Feb 16, 2024
1 parent 22405a3 commit 5341fc1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/nvflare_setup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"### Install NVFLARE from PyPI\n",
"```\n",
"pip install 'nvflare>=2.3.0'\n",
"pip install 'nvflare~=2.4.0'\n",
"\n",
"```\n",
"We do not recommend running NVFlare CLI commands in jupyter notebook cells."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ tests:
"data": { "run_finished": True }
validators:
- path: tests.integration_test.src.validators.TFModelValidator
setup:
- python -c "import tensorflow as tf; tf.keras.datasets.mnist.load_data()"
teardown:
- rm ~/.keras/datasets/mnist.npz
- test_name: "run hello-tf2"
event_sequence:
- "trigger":
Expand All @@ -39,3 +43,7 @@ tests:
"data": { "run_finished": True }
validators:
- path: tests.integration_test.src.validators.TFModelValidator
setup:
- python -c "import tensorflow as tf; tf.keras.datasets.mnist.load_data()"
teardown:
- rm ~/.keras/datasets/mnist.npz
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ tests:
- path: tests.integration_test.src.validators.TFModelValidator
setup:
- python -c "import tensorflow as tf; tf.keras.datasets.mnist.load_data()"
teardown:
- rm ~/.keras/datasets/mnist.npz

0 comments on commit 5341fc1

Please sign in to comment.