diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index c2071cd85d1..3ed64d0dc73 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -127,7 +127,7 @@ jobs: context: . file: ./Dockerfile.ui cache-from: type=local,src=/tmp/cvat_cache_ui - tags: cvat/ui:latest + tags: cvat/ui:dev load: true - name: CVAT server. Extract metadata (tags, labels) for Docker @@ -147,9 +147,9 @@ jobs: - name: Pull CVAT server image run: | docker pull ${{ steps.meta-server.outputs.tags }} + docker tag ${{ steps.meta-server.outputs.tags }} cvat/server:dev + #TODO fix tag in Dockerfile.ci docker tag ${{ steps.meta-server.outputs.tags }} cvat/server:local - docker tag ${{ steps.meta-server.outputs.tags }} cvat/server:latest - docker tag cvat/ui:latest cvat/ui:local - name: OPA tests run: | @@ -158,15 +158,21 @@ jobs: docker compose run --rm -v "$PWD:/mnt/src:ro" -w /mnt/src \ cvat_opa test cvat/apps/*/rules - - name: REST API and SDK tests + - name: Generate SDK run: | pip3 install -r cvat-sdk/gen/requirements.txt ./cvat-sdk/gen/generate.sh - pip3 install -r ./tests/python/requirements.txt - pip3 install -e ./cvat-sdk - pip3 install -e ./cvat-cli + - name: Install test dependencies, SDK and CLI + run: | + pip3 install \ + -r ./tests/python/requirements.txt \ + -e './cvat-sdk[pytorch]' \ + -e ./cvat-cli \ + --extra-index-url https://download.pytorch.org/whl/cpu + - name: Run REST API and SDK tests + run: | pytest tests/python/ pytest tests/python/ --stop-services @@ -176,7 +182,7 @@ jobs: CVAT_ALLOW_STATIC_CACHE="true" pytest tests/python pytest tests/python/ --stop-services - - name: Unit tests + - name: Run unit tests env: HOST_COVERAGE_DATA_DIR: ${{ github.workspace }} CONTAINER_COVERAGE_DATA_DIR: "/coverage_data"