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
|
- name: Test Base image
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
cid=$(docker create -u root -w /tests ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:${{ github.ref_name }} sleep 60)
|
||||||
-v ${{ github.workspace }}/tests:/tests \
|
docker start "$cid"
|
||||||
${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:${{ github.ref_name }} \
|
docker cp ${{ github.workspace }}/tests/. "$cid":/tests
|
||||||
python3 /tests/base.py
|
docker exec "$cid" python3 /tests/base.py
|
||||||
|
docker rm -f "$cid"
|
||||||
|
|
||||||
- name: Tag Base image as latest
|
- name: Tag Base image as latest
|
||||||
run: |
|
run: |
|
||||||
@ -60,10 +61,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Test Jupyter dependencies
|
- name: Test Jupyter dependencies
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
cid=$(docker create -w /tests ${{ env.REGISTRY }}/${{ env.JUPYTER_IMAGE_NAME }}:${{ github.ref_name }} sleep 60)
|
||||||
-v ${{ github.workspace }}/tests:/tests \
|
docker start "$cid"
|
||||||
${{ env.REGISTRY }}/${{ env.JUPYTER_IMAGE_NAME }}:${{ github.ref_name }} \
|
docker cp ${{ github.workspace }}/tests/. "$cid":/tests
|
||||||
python3 /tests/dependencies.py
|
docker exec "$cid" python3 /tests/dependencies.py
|
||||||
|
docker rm -f "$cid"
|
||||||
|
|
||||||
- name: Tag Jupyter image as latest
|
- name: Tag Jupyter image as latest
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user