diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7cf93fd..f0577f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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.