change ci image
This commit is contained in:
@@ -6,26 +6,21 @@
|
|||||||
|
|
||||||
# Official language image. Look for the different tagged releases at:
|
# Official language image. Look for the different tagged releases at:
|
||||||
# https://hub.docker.com/r/library/python/tags/
|
# https://hub.docker.com/r/library/python/tags/
|
||||||
image: python:latest
|
image: python:3.11
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
variables:
|
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
|
# Cache pip packages for faster builds
|
||||||
# only cache local items.
|
|
||||||
variables:
|
|
||||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
||||||
|
|
||||||
# https://pip.pypa.io/en/stable/topics/caching/
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .cache/pip
|
- .cache/pip
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- python --version ; pip --version # For debugging
|
- python --version ; pip --version # Verify Python and pip versions
|
||||||
- pip install virtualenv
|
- pip install virtualenv
|
||||||
- virtualenv venv
|
- virtualenv venv
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
|
|||||||
Reference in New Issue
Block a user