Update .gitlab-ci.yml file
This commit is contained in:
@@ -1,27 +1,8 @@
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- 'test'
|
|
||||||
- 'build'
|
- 'build'
|
||||||
- 'push'
|
- '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:
|
variables:
|
||||||
# DOCKER_HOST: tcp://docker:2375
|
# DOCKER_HOST: tcp://docker:2375
|
||||||
# fill those if you have a proxy in your environment
|
# fill those if you have a proxy in your environment
|
||||||
@@ -31,7 +12,6 @@ variables:
|
|||||||
|
|
||||||
make_image:
|
make_image:
|
||||||
stage: build
|
stage: build
|
||||||
needs: ['pytest']
|
|
||||||
image: docker:26.1.3
|
image: docker:26.1.3
|
||||||
only:
|
only:
|
||||||
# We want this job to be run on tags only.
|
# We want this job to be run on tags only.
|
||||||
|
|||||||
Reference in New Issue
Block a user