Skip to content

Commit e340335

Browse files
author
Ruinong Tian
committed
fix keras and altair unit tests
1 parent 16d4546 commit e340335

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/test_artifacts/v2/altair.test.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ COPY --chown=$MAMBA_USER:$MAMBA_USER scripts/run_altair_example_notebooks.sh ./
1515
RUN chmod +x run_altair_example_notebooks.sh
1616

1717
# Example notebooks' dependencies
18-
RUN micromamba install -y --freeze-installed -c conda-forge papermill vega_datasets pandas matplotlib numpy
18+
RUN micromamba install -y --freeze-installed -c conda-forge papermill vega_datasets numpy
1919

2020
CMD ["./run_altair_example_notebooks.sh"]

test/test_artifacts/v2/scripts/run_keras_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keras_version=$(micromamba list | grep keras | tr -s ' ' | cut -d ' ' -f 3)
55
git checkout tags/v$keras_version
66
# Ref: https://keras.io/guides/, https://github.com/keras-team/keras-io/tree/master
77
for file in *.py; do
8-
if [ "$file" != "transfer_learning.py"] && ["$file" != "custom_train_step_in_torch.py"]; then
8+
if [ "$file" != "transfer_learning.py" ] && [ "$file" != "custom_train_step_in_torch.py" ]; then
99
# skipping transfer_learning.py because it has 20 epochs and it takes a very long time to execute
1010
# https://github.com/keras-team/keras-io/blob/master/guides/transfer_learning.py#L562
1111
# skipping custom_train_step_in_torch.py because there is a bug which causes error

test/test_artifacts/v3/altair.test.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ COPY --chown=$MAMBA_USER:$MAMBA_USER scripts/run_altair_example_notebooks.sh ./
1515
RUN chmod +x run_altair_example_notebooks.sh
1616

1717
# Example notebooks' dependencies
18-
RUN micromamba install -y --freeze-installed -c conda-forge papermill vega_datasets pandas matplotlib numpy
18+
RUN micromamba install -y --freeze-installed -c conda-forge papermill vega_datasets numpy
1919

2020
CMD ["./run_altair_example_notebooks.sh"]

test/test_artifacts/v3/scripts/run_keras_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keras_version=$(micromamba list | grep keras | tr -s ' ' | cut -d ' ' -f 3)
55
git checkout tags/v$keras_version
66
# Ref: https://keras.io/guides/, https://github.com/keras-team/keras-io/tree/master
77
for file in *.py; do
8-
if [ "$file" != "transfer_learning.py"] && ["$file" != "custom_train_step_in_torch.py"]; then
8+
if [ "$file" != "transfer_learning.py" ] && [ "$file" != "custom_train_step_in_torch.py" ]; then
99
# skipping transfer_learning.py because it has 20 epochs and it takes a very long time to execute
1010
# https://github.com/keras-team/keras-io/blob/master/guides/transfer_learning.py#L562
1111
# skipping custom_train_step_in_torch.py because there is a bug which causes error

0 commit comments

Comments
 (0)