Configure continuous integration
Recover the .gitlab-ci.yml
configuration file. At the minimum it should run tox
in a testing stage. Test results should be project artifacts
test:
stage: test
script:
- tox
artifacts:
reports:
junit: toxtests.xml
I recommend adding a step to upload the final result to the project package repository:
twine:
stage: build
script:
- tox -e build
- pip install twine
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://gitlab.inria.fr/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*
artifacts:
paths:
- dist/*.whl