Update .gitlab-ci.yml file

This commit is contained in:
Slava
2025-03-03 14:31:48 +00:00
parent 3f2d6093d0
commit c35a16e317

View File

@@ -1,27 +1,8 @@
stages:
- 'test'
- 'build'
- 'push'
pytest:
stage: 'test'
image: python:3.12.2-slim-bookworm
cache:
paths:
- $CI_PROJECT_DIR/venv/
before_script:
- cd $CI_PROJECT_DIR
- python -m venv venv
- chmod u+x venv/bin/activate
- source venv/bin/activate
- pip install --upgrade --quiet pip
- pip install --quiet -U -r requirements.txt
- pip install --quiet -U -r tests/requirements.txt
script:
- pytest -v
variables:
# DOCKER_HOST: tcp://docker:2375
# fill those if you have a proxy in your environment
@@ -31,7 +12,6 @@ variables:
make_image:
stage: build
needs: ['pytest']
image: docker:26.1.3
only:
# We want this job to be run on tags only.