This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
forked from cvat-ai/cvat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated workflows
- Loading branch information
Showing
3 changed files
with
15 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,11 @@ | ||
name: Publish Docker images | ||
on: | ||
release: | ||
types: [published] | ||
types: [released] | ||
|
||
jobs: | ||
Unit_testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run unit tests | ||
env: | ||
HOST_COVERAGE_DATA_DIR: ${{ github.workspace }} | ||
CONTAINER_COVERAGE_DATA_DIR: '/coverage_data' | ||
run: | | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash -c 'coverage run -a manage.py test cvat/apps utils/cli' | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash -c 'cd cvat-data && npm ci && cd ../cvat-core && npm ci && npm run test' | ||
E2E_testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
- name: Run end-to-end tests | ||
env: | ||
DJANGO_SU_NAME: 'admin' | ||
DJANGO_SU_EMAIL: '[email protected]' | ||
DJANGO_SU_PASSWORD: '12qwaszx' | ||
API_ABOUT_PAGE: "localhost:8080/api/server/about" | ||
run: | | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml build | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml -f tests/docker-compose.file_share.yml up -d | ||
/bin/bash -c 'while [[ $(curl -s -o /dev/null -w "%{http_code}" ${API_ABOUT_PAGE}) != "401" ]]; do sleep 5; done' | ||
docker exec -i cvat /bin/bash -c "echo \"from django.contrib.auth.models import User; User.objects.create_superuser('${DJANGO_SU_NAME}', '${DJANGO_SU_EMAIL}', '${DJANGO_SU_PASSWORD}')\" | python3 ~/manage.py shell" | ||
cd ./tests | ||
npm ci | ||
npm run cypress:run:chrome | ||
npm run cypress:run:chrome:canvas3d | ||
- name: Uploading cypress screenshots as an artifact | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cypress_screenshots | ||
path: ${{ github.workspace }}/tests/cypress/screenshots | ||
|
||
Push_to_registry: | ||
runs-on: ubuntu-latest | ||
needs: [Unit_testing, E2E_testing] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build images | ||
|
@@ -60,7 +18,7 @@ jobs: | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Push to Docker Hub | ||
env: | ||
DOCKERHUB_WORKSPACE: 'openvino' | ||
DOCKERHUB_WORKSPACE: ${{ secrets.DOCKERHUB_WORKSPACE }} | ||
SERVER_IMAGE_REPO: 'cvat_server' | ||
UI_IMAGE_REPO: 'cvat_ui' | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters