From 330745b57a2abc5f8f4c7ca8b92a43a975e829c0 Mon Sep 17 00:00:00 2001 From: prisar Date: Sun, 21 Jan 2024 16:23:17 +0530 Subject: [PATCH] change ci image --- .gitlab-ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b52c125..342fa79 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,26 +6,21 @@ # Official language image. Look for the different tagged releases at: # https://hub.docker.com/r/library/python/tags/ -image: python:latest +image: python:3.11 stages: - test variables: - PYTHON_VERSION: "3.8" + PYTHON_VERSION: "3.11" # Explicitly set the Python version variable -# Change pip's cache directory to be inside the project directory since we can -# only cache local items. -variables: - PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" - -# https://pip.pypa.io/en/stable/topics/caching/ +# Cache pip packages for faster builds cache: paths: - .cache/pip before_script: - - python --version ; pip --version # For debugging + - python --version ; pip --version # Verify Python and pip versions - pip install virtualenv - virtualenv venv - source venv/bin/activate @@ -35,4 +30,4 @@ before_script: test: stage: test script: - - pytest + - pytest \ No newline at end of file