File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ pipeline {
2020 set -exo pipefail
2121 # Ensures the currently released Docker Python image is used.
2222 docker pull gcr.io/kaggle-images/python:staging
23+ docker pull gcr.io/kaggle-images/python@sha256:287c4e0e224e592dc6113940a6cf3d099b814c7bff0c1e8da57f8e6bad123ac5
2324 '''
2425 }
2526 }
Original file line number Diff line number Diff line change @@ -11,13 +11,20 @@ if [[ -r /etc/git_commit ]]; then
1111fi
1212
1313# Filter by tracks if first argument set.
14- TRACKS=" ml_explainability intro_to_programming time_series ethics feature_engineering_new computer_vision deep_learning_intro pandas python machine_learning sql data_viz_to_coder ml_intermediate sql_advanced feature_engineering geospatial nlp game_ai data_cleaning"
15- TESTABLE_NOTEBOOK_TRACKS=" ml_intermediate ml_explainability intro_to_programming geospatial time_series ethics feature_engineering_new data_viz_to_coder data_cleaning computer_vision deep_learning_intro python pandas machine_learning game_ai"
14+ TRACKS=" ml_explainability intro_to_programming time_series ethics feature_engineering_new pandas python machine_learning sql data_viz_to_coder ml_intermediate sql_advanced feature_engineering geospatial nlp game_ai data_cleaning"
15+ TESTABLE_NOTEBOOK_TRACKS=" ml_intermediate ml_explainability intro_to_programming geospatial time_series ethics feature_engineering_new data_viz_to_coder data_cleaning python pandas machine_learning game_ai"
16+ PARTIAL_TESTABLE_NOTEBOOK_TRACKS=" computer_vision deep_learning_intro"
1617
17- if [[ -n $1 && $1 != " all" ]]; then
18+ if [[ -n $1 && $1 != " all" && $1 != " kerasExp " ]]; then
1819 TRACKS=$1
1920 TESTABLE_NOTEBOOK_TRACKS=$1
2021fi
22+
23+ if [[ -n $1 && $1 == " kerasExp" ]]; then
24+ TRACKS=$PARTIAL_TESTABLE_NOTEBOOK_TRACKS
25+ TESTABLE_NOTEBOOK_TRACKS=$PARTIAL_TESTABLE_NOTEBOOK_TRACKS
26+ fi
27+
2128readonly TRACKS
2229readonly TESTABLE_NOTEBOOK_TRACKS
2330
Original file line number Diff line number Diff line change 22set -e
33
44IMAGE=' gcr.io/kaggle-images/python:staging'
5+ PINNED_IMAGE=' gcr.io/kaggle-images/python@sha256:287c4e0e224e592dc6113940a6cf3d099b814c7bff0c1e8da57f8e6bad123ac5'
56TRACK=' all'
67NOTEBOOK=' all'
78
@@ -76,6 +77,25 @@ if [[ -z $KAGGLE_KEY && ! ( -r "$HOME/.kaggle/kaggle.json" ) ]]; then
7677fi
7778
7879set -x
80+
81+ if [[ $NOTEBOOK == " all" ]]; then
82+ docker run --rm -t \
83+ -e KAGGLE_USERNAME -e KAGGLE_KEY \
84+ -v ~ /.kaggle:/root/.kaggle:ro \
85+ -v $PWD :/input:ro \
86+ $PINNED_IMAGE \
87+ /bin/bash -c " /input/notebooks/test.sh kerasExp"
88+ fi
89+
90+ if [[ $NOTEBOOK == " computer_vision" || $NOTEBOOK == " deep_learning_intro" ]]; then
91+ docker run --rm -t \
92+ -e KAGGLE_USERNAME -e KAGGLE_KEY \
93+ -v ~ /.kaggle:/root/.kaggle:ro \
94+ -v $PWD :/input:ro \
95+ $PINNED_IMAGE \
96+ /bin/bash -c " /input/notebooks/test.sh $TRACK $NOTEBOOK "
97+ fi
98+
7999docker run --rm -t \
80100 -e KAGGLE_USERNAME -e KAGGLE_KEY \
81101 -v ~ /.kaggle:/root/.kaggle:ro \
You can’t perform that action at this time.
0 commit comments