change ci image

This commit is contained in:
prisar
2024-01-21 16:23:17 +05:30
parent b3526fa577
commit 330745b57a

View File

@@ -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