Skip to content

Commit 8d207bb

Browse files
authored
test: run kaggle-environments tests in jenkins pipeline (#1535)
BUG=b/477947477 A bit of a quick and dirty solution to the ask. It's brittle against things like simple file moves in the `kaggle-environments` repo, but wasn't too sure how much we really wanted to couple these two repos. Open to alternative implementations.
1 parent eb72040 commit 8d207bb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Jenkinsfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,21 @@ pipeline {
169169
}
170170
}
171171
}
172+
stage('Test kaggle-environments') {
173+
options {
174+
timeout(time: 15, unit: 'MINUTES')
175+
}
176+
steps {
177+
sh '''#!/bin/bash
178+
set -exo pipefail
179+
docker run --rm \
180+
-e PYTHONUNBUFFERED=1 \
181+
--pull always \
182+
gcr.io/kaggle-images/python:${PRETEST_TAG} \
183+
bash -c "git clone https://github.com/Kaggle/kaggle-environments.git /tmp/kaggle-environments && cd /tmp/kaggle-environments && python -m pytest tests/ kaggle_environments/ --tb=short"
184+
'''
185+
}
186+
}
172187
}
173188
}
174189

0 commit comments

Comments
 (0)