[ci] use alpine base image directly
This commit is contained in:
parent
45cf32de2b
commit
0fcf433ec6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue