Skip to content

seignovert/test-gitlab-ci

Repository files navigation

Gitlab CI Python to PyPi

Build Coverage PyPI Version License

Test and deploy Python package to PyPi with Gitlab CI/CD.

Run tests locally

  • Run tox with python 3.6:
$ gitlab-runner exec docker py36
  • Test deploy to PyPI:
$ gitlab-runner exec docker pypi \
    --env PYPI_USERNAME=$PYPI_USERNAME \
    --env PYPI_PASSWORD=$(keyring get pypi $PYPI_USERNAME) \
    --env PYPI_URL=https://test.pypi.org/legacy/