<h1 align="center">
<a href="https://prompts.chat">
stages:
Sign in to like and favorite skills
stages: - tests - build - docker-test - deploy sast: stage: tests include: - template: Security/SAST.gitlab-ci.yml - project: "sw-gpu-doctools/docs-ci" ref: main file: "nemo-guardrails-toolkit/docs-ci.yaml"
variables: PIP_CACHE_DIR: "${CI_PROJECT_DIR}/.cache/pip" POETRY_VERSION: "1.8.2" IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG LATEST_TAG: $CI_REGISTRY_IMAGE:latest
cache: key: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}" paths: - .venv/ - .cache/pip - poetry.lock - pyproject.toml
.install-deps-template: &install-deps before_script: - pip install poetry==$POETRY_VERSION - poetry --version - poetry config virtualenvs.in-project true - poetry install --extras all --with dev
.test-template: &test <<: install-deps stage: tests coverage: /(?i)total.? (100(?:.0+)?%|[1-9]?\d(?:.\d+)?%)$/ script: make test
python3.10: <<: *test image: python:3.10
python3.11: <<: *test image: python:3.11
python3.12: <<: *test image: python:3.12
python3.13: <<: *test image: python:3.13
build: stage: build image: docker:19.03.12 services: - docker:19.03.12-dind variables: DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "/certs" before_script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: - docker build -t $IMAGE_TAG -f ./qa/Dockerfile.qa . - docker push $IMAGE_TAG only: - tags tags: - gitlab-runner-bignlp-api
docker-test: stage: docker-test image: docker:19.03.12 services: - docker:19.03.12-dind before_script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: - docker pull $IMAGE_TAG - docker run --rm $IMAGE_TAG pytest || (docker rmi $IMAGE_TAG && exit 1) only: - tags
tags: - gitlab-runner-bignlp-api