# This file is a template, and might need editing before it works on your project. # To contribute improvements to CI/CD templates, please follow the Development guide at: # https://docs.gitlab.com/ee/development/cicd/templates.html # This specific template is located at: # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml # Official language image. Look for the different tagged releases at: # https://hub.docker.com/r/library/python/tags/ image: python:3.11 stages: - test variables: PYTHON_VERSION: "3.11" # Explicitly set the Python version variable # Cache pip packages for faster builds cache: paths: - .cache/pip before_script: - python --version ; pip --version # Verify Python and pip versions - pip install virtualenv - virtualenv venv - source venv/bin/activate - pip install setuptools - pip install -r requirements.txt test: stage: test script: - pytest