|
|
|
|
@ -159,13 +159,12 @@ jobs:
|
|
|
|
|
docker tag cvat/ui:latest cvat/ui:dev
|
|
|
|
|
docker image ls -a
|
|
|
|
|
|
|
|
|
|
- name: Running REST API tests
|
|
|
|
|
- name: Running REST API and SDK tests
|
|
|
|
|
run: |
|
|
|
|
|
pip3 install --user /tmp/cvat_sdk/
|
|
|
|
|
pip3 install --user cvat-cli/
|
|
|
|
|
pip3 install --user -r tests/python/requirements.txt
|
|
|
|
|
pytest tests/python/rest_api -k 'GET' -s
|
|
|
|
|
pytest tests/python/sdk tests/python/cli
|
|
|
|
|
pytest tests/python/ -s -v
|
|
|
|
|
|
|
|
|
|
- name: Creating a log file from cvat containers
|
|
|
|
|
if: failure()
|
|
|
|
|
@ -222,7 +221,7 @@ jobs:
|
|
|
|
|
while [[ $(curl -s -o /dev/null -w "%{http_code}" localhost:8181/health) != "200" && max_tries -gt 0 ]]; do (( max_tries-- )); sleep 5; done
|
|
|
|
|
|
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
|
|
|
|
|
-c 'python manage.py test cvat/apps -k tasks_id -k lambda -k share -v 2'
|
|
|
|
|
-c 'python manage.py test cvat/apps -v 2'
|
|
|
|
|
|
|
|
|
|
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
|
|
|
|
|
-c 'yarn --frozen-lockfile --ignore-scripts && yarn workspace cvat-core run test'
|
|
|
|
|
@ -233,7 +232,7 @@ jobs:
|
|
|
|
|
LOGS_DIR: "${{ github.workspace }}/unit_testing"
|
|
|
|
|
run: |
|
|
|
|
|
mkdir $LOGS_DIR
|
|
|
|
|
docker logs cvat_server > $LOGS_DIR/cvat.log
|
|
|
|
|
docker logs cvat_server > $LOGS_DIR/cvat_server.log
|
|
|
|
|
docker logs cvat_opa 2> $LOGS_DIR/cvat_opa.log
|
|
|
|
|
|
|
|
|
|
- name: Uploading "cvat" container logs as an artifact
|
|
|
|
|
@ -250,7 +249,10 @@ jobs:
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
specs: ['canvas3d_functionality', 'actions']
|
|
|
|
|
specs: ['actions_tasks', 'actions_tasks2', 'actions_tasks3',
|
|
|
|
|
'actions_objects', 'actions_objects2', 'actions_users',
|
|
|
|
|
'actions_projects_models', 'actions_organizations', 'canvas3d_functionality',
|
|
|
|
|
'canvas3d_functionality_2', 'issues_prs', 'issues_prs2']
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
@ -267,7 +269,7 @@ jobs:
|
|
|
|
|
name: cvat_server
|
|
|
|
|
path: /tmp/cvat_server/
|
|
|
|
|
|
|
|
|
|
- name: Download CVAT UI images
|
|
|
|
|
- name: Download CVAT UI image
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: cvat_ui
|
|
|
|
|
@ -316,10 +318,18 @@ jobs:
|
|
|
|
|
cd ./tests
|
|
|
|
|
yarn --frozen-lockfile
|
|
|
|
|
|
|
|
|
|
if [ ${{ matrix.specs }} == 'canvas3d_functionality' ]; then
|
|
|
|
|
npx cypress run --headed --browser chrome --config-file pr_cypress_canvas3d.json
|
|
|
|
|
if [[ ${{ matrix.specs }} == canvas3d_* ]]; then
|
|
|
|
|
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 --config-file pr_cypress.json
|
|
|
|
|
npx cypress run \
|
|
|
|
|
--browser chrome \
|
|
|
|
|
--env coverage=false \
|
|
|
|
|
--spec 'cypress/integration/${{ matrix.specs }}/**/*.js,cypress/integration/remove_users_tasks_projects_organizations.js'
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
- name: Creating a log file from "cvat" container logs
|
|
|
|
|
|