Skip to content

Commit

Permalink
Merge pull request #33 from manics/tests-match-r2d-version
Browse files Browse the repository at this point in the history
Clone tests from repo2docker tag, not latest
  • Loading branch information
manics authored Sep 22, 2022
2 parents dbbd1c1 + e49c9b0 commit 86de87e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ jobs:
- name: Fetch repo2docker tests
run: |
git clone --depth 1 --single-branch https://github.com/jupyter/repo2docker tests-repo2docker
# Tests need to match the r2d version, need to convert YYYY.M.N to YYYY.MM.N
R2D_PY_VERSION=$(grep jupyter-repo2docker== dev-requirements.txt | cut -d= -f3)
GIT_TAG=$(echo $R2D_PY_VERSION | sed -re 's/\.([[:digit:]])\./.0\1./')
echo "Cloning repo2docker test from tag: $GIT_TAG"
git clone --depth 1 --branch=$GIT_TAG https://github.com/jupyter/repo2docker tests-repo2docker
for d in ./tests-repo2docker/tests/*/; do
if [ "${d##*tests/}" != "unit/" ]; then
cp -a $d tests
Expand Down

0 comments on commit 86de87e

Please sign in to comment.