stages: - zy - test-and-build - build-docker - deploy variables: GIT_DEPTH: 1 test: stage: test-and-build when: manual except: - main tags: - i7 script: - make opencv -j$(nproc --ignore=2) - make test build-web: stage: test-and-build except: - main tags: - i7 before_script: - (cd web; npm install) script: - make web artifacts: paths: - build build-docker: stage: build-docker except: - main tags: - i7 script: - make docker-build - make docker-push - make docker-push-prod dependencies: - build-web except: - main deploy-dev: stage: deploy except: - main tags: - ed2 script: - make deploy-api-dev cache: [] dependencies: [] dev-smoke: stage: test-and-build when: manual tags: - i7 allow_failure: true script: - ./scripts/emcli --env dev activate 0074253255108 - ./api/scripts/api_smoke.py -p $EMBLEM_CI_PASSWORD cache: [] deploy-prod: stage: deploy tags: - i7 only: - main script: - make deploy-api-prod cache: [] dependencies: [] zy: stage: zy tags: - zy before_script: - pip install uv --index-url https://pypi.tuna.tsinghua.edu.cn/simple - export PATH="$HOME/.local/bin:$PATH" - uv venv venv - source venv/bin/activate - uv pip install -r requirements.txt --default-index https://pypi.tuna.tsinghua.edu.cn/simple script: - make fetch-quick - make sbs-quick - make train-quick