Sign inSign up

rlaures/pyenv

By rlaures

•Updated over 2 years ago

A Pyenv ready image.

Image
Developer tools
0

1.1K

rlaures/pyenv repository overview

⁠Pyenv Image

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.

⁠Usage

⁠GitLab CI

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

Tag summary

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