未验证 提交 860b0d96 编写于 作者: K Kirill Sizov 提交者: GitHub

Update workflow configs (#4930)

上级 aed6de5c
......@@ -69,7 +69,7 @@ jobs:
mkdir /tmp/cvat_server
mkdir /tmp/cvat_ui
- name: CVAT server. Build and push
- name: CVAT server. Build
uses: docker/build-push-action@v3
with:
cache-from: type=local,src=/tmp/cvat_cache_server
......@@ -78,7 +78,7 @@ jobs:
tags: cvat/server
outputs: type=docker,dest=/tmp/cvat_server/image.tar
- name: CVAT UI. Build and push
- name: CVAT UI. Build
uses: docker/build-push-action@v3
with:
cache-from: type=local,src=/tmp/cvat_cache_ui
......@@ -162,6 +162,8 @@ jobs:
run: |
docker load --input /tmp/cvat_server/image.tar
docker load --input /tmp/cvat_ui/image.tar
docker tag cvat/server:latest cvat/server:dev
docker tag cvat/ui:latest cvat/server:dev
docker image ls -a
- name: Running REST API and SDK tests
......@@ -217,6 +219,7 @@ jobs:
- name: Load Docker images
run: |
docker load --input /tmp/cvat_server/image.tar
docker tag cvat/server:latest cvat/server:dev
docker image ls -a
- name: Running OPA tests
......@@ -252,11 +255,9 @@ jobs:
- name: Uploading "cvat" container logs as an artifact
if: failure()
uses: actions/upload-artifact@v2
env:
LOGS_DIR: "${{ github.workspace }}/unit_testing"
with:
name: container_logs
path: $LOGS_DIR
path: "${{ github.workspace }}/unit_testing"
e2e_testing:
needs: build
......@@ -296,6 +297,8 @@ jobs:
run: |
docker load --input /tmp/cvat_server/image.tar
docker load --input /tmp/cvat_ui/image.tar
docker tag cvat/server:latest cvat/server:dev
docker tag cvat/ui:latest cvat/ui:dev
docker image ls -a
- name: Run CVAT instance
......@@ -336,11 +339,13 @@ jobs:
npx cypress run \
--headed \
--browser chrome \
--env coverage=false
--config-file cypress_canvas3d.json \
--spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects_organizations.js'
else
npx cypress run \
--browser chrome \
--env coverage=false
--spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects_organizations.js'
fi
......
......@@ -129,6 +129,8 @@ jobs:
run: |
docker load --input /tmp/cvat_server/image.tar
docker load --input /tmp/cvat_ui/image.tar
docker tag cvat/server:latest cvat/server:dev
docker tag cvat/ui:latest cvat/ui:dev
docker image ls -a
- name: Running REST API tests
......@@ -181,6 +183,7 @@ jobs:
- name: Load Docker server image
run: |
docker load --input /tmp/cvat_server/image.tar
docker tag cvat/server:latest cvat/server:dev
docker image ls -a
- name: Running OPA tests
......@@ -256,6 +259,8 @@ jobs:
run: |
docker load --input /tmp/cvat_server/image.tar
docker load --input /tmp/cvat_ui/image.tar
docker tag cvat/server:latest cvat/server:dev
docker tag cvat/ui:latest cvat/ui:dev
docker image ls -a
- name: Run CVAT instance
......
......@@ -214,7 +214,7 @@ jobs:
- name: Pull CVAT server image
run: |
docker pull ${{ steps.meta-server.outputs.tags }}
docker tag ${{ steps.meta-server.outputs.tags }} cvat/server
docker tag ${{ steps.meta-server.outputs.tags }} cvat/server:dev
- name: OPA tests
run: |
......@@ -308,10 +308,10 @@ jobs:
- name: Pull CVAT UI image
run: |
docker pull ${{ steps.meta-server.outputs.tags }}
docker tag ${{ steps.meta-server.outputs.tags }} cvat/server
docker tag ${{ steps.meta-server.outputs.tags }} cvat/server:dev
docker pull ${{ steps.meta-ui.outputs.tags }}
docker tag ${{ steps.meta-ui.outputs.tags }} cvat/ui
docker tag ${{ steps.meta-ui.outputs.tags }} cvat/ui:dev
- name: Run CVAT instance
run: |
......@@ -430,7 +430,7 @@ jobs:
- name: Pull CVAT server image
run: |
docker pull ${{ steps.meta-server.outputs.tags }}
docker tag ${{ steps.meta-server.outputs.tags }} cvat/server
docker tag ${{ steps.meta-server.outputs.tags }} cvat/server:dev
- name: Downloading coverage results
uses: actions/download-artifact@v2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册