Fix CI tests
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m7s
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m7s
This commit is contained in:
parent
cb63016421
commit
5287ca66a1
@ -34,10 +34,11 @@ jobs:
|
||||
|
||||
- name: Test Base image
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v ${{ github.workspace }}/tests:/tests \
|
||||
${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:${{ github.ref_name }} \
|
||||
python3 /tests/base.py
|
||||
cid=$(docker create -u root -w /tests ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:${{ github.ref_name }} sleep 60)
|
||||
docker start "$cid"
|
||||
docker cp ${{ github.workspace }}/tests/. "$cid":/tests
|
||||
docker exec "$cid" python3 /tests/base.py
|
||||
docker rm -f "$cid"
|
||||
|
||||
- name: Tag Base image as latest
|
||||
run: |
|
||||
@ -60,10 +61,11 @@ jobs:
|
||||
|
||||
- name: Test Jupyter dependencies
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v ${{ github.workspace }}/tests:/tests \
|
||||
${{ env.REGISTRY }}/${{ env.JUPYTER_IMAGE_NAME }}:${{ github.ref_name }} \
|
||||
python3 /tests/dependencies.py
|
||||
cid=$(docker create -w /tests ${{ env.REGISTRY }}/${{ env.JUPYTER_IMAGE_NAME }}:${{ github.ref_name }} sleep 60)
|
||||
docker start "$cid"
|
||||
docker cp ${{ github.workspace }}/tests/. "$cid":/tests
|
||||
docker exec "$cid" python3 /tests/dependencies.py
|
||||
docker rm -f "$cid"
|
||||
|
||||
- name: Tag Jupyter image as latest
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user