From 0fcf433ec66384f9d13917c36493f5ff5c63f6ac Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Mon, 21 Aug 2023 00:08:29 +0200 Subject: [PATCH] =?UTF-8?q?[ci]=C2=A0use=20alpine=20base=20image=20directl?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32cd6cc..ec366a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ # Official language image. Look for the different tagged releases at: # https://hub.docker.com/r/library/python/tags/ -image: python:3.11.4-alpine3.17 +image: alpine:3.18 # Change pip's cache directory to be inside the project directory since we can # only cache local items. @@ -33,18 +33,18 @@ stages: .before_script_template: &test before_script: - - apk update && apk add py3-virtualenv py3-pip py3-exceptiongroup + - apk update && apk add python3 py3-virtualenv py3-pip - python3 -V # Print out python version for debugging - pip3 install pipenv - pipenv install --dev test: - image: python:${PYVERSION}-alpine3.17 + image: alpine:${ALPINEVERSION} stage: test <<: *test parallel: matrix: - - PYVERSION: ["3.8", "3.9", "3.10", "3.11"] + - ALPINEVERSION: ["3.13","3.14","3.15","3.16","3.17","3.18"] script: - pipenv run pytest --version - PYTHONPATH=./tests/ pipenv run coverage run --source halfapi -m pytest