.gitlab-ci.yml 382 B

123456789101112131415161718192021
  1. image: python:3.10
  2. stages:
  3. - test
  4. - publish
  5. before_script:
  6. - python -V
  7. - python -m venv venv
  8. - source venv/bin/activate
  9. - pip install -U pip
  10. - pip install .[all]
  11. publish:
  12. stage: publish
  13. script:
  14. - pip install -U hatchling twine build
  15. - python -m build .
  16. - python -m twine upload --username __token__ --password ${PYPI_TOKEN} dist/*
  17. only:
  18. - tags