This image integrate pyenv ready to use with already installed and compiled the version 3.9 to 3.12. This is useful for Gitlab CI or other CI/CD tools.
If you have test your Python application/library with tox, create a test job like this in your .gitlab-ci.yml file :
test:
stage: test
image: rlaures/pyenv:python-3.12-alpine3.20-latest
coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
before_script:
- pyenv local 3.12 3.11 3.10 3.9
- pyenv shims
- pip install tox
script:
- tox
artifacts:
when: always
paths:
- coverage.xml
- .coverage
- report.xml
reports:
junit: report.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml
Content type
Image
Digest
sha256:5bc50ee15…
Size
369.9 MB
Last updated
over 2 years ago
docker pull rlaures/pyenv:python-3.12-alpine3.20-latest