variables: GIT_SUBMODULE_STRATEGY: recursive stages: - build - test - publish build:debian_10: stage: build image: "registry.gitlab.com/gerbolyze/build-containers/debian:10" variables: GIT_SUBMODULE_STRATEGY: none script: - python3 setup.py bdist_wheel artifacts: name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara" paths: - dist/*.whl test:debian_10: stage: test image: "registry.gitlab.com/gerbolyze/build-containers/debian:10" script: - "pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*'" dependencies: - build:debian_10 artifacts: name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara" when: on_failure paths: - gerbonara_test_failures/* publish:gerbonara: stage: publish variables: GIT_SUBMODULE_STRATEGY: none image: "registry.gitlab.com/gerbolyze/build-containers/debian:10" cache: {} script: - pip install -U --user twine - export TWINE_USERNAME TWINE_PASSWORD - ~/.local/bin/twine upload dist/* dependencies: - build:debian_10 only: - /^v.*$/