Loading templates/python.yml +12 −21 Original line number Diff line number Diff line --- build-wheel: .python3: tags: [ns4.shore.co.il] stage: build image: registry.shore.co.il/ci-images:python3 variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" cache: paths: - .cache/ build-wheel: extends: .python3 stage: build script: - python3 setup.py check --verbose --metadata --restructuredtext --strict - python3 setup.py bdist_wheel artifacts: paths: - dist/*.whl variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" cache: paths: - .cache/ .install-wheel: tags: [ns4.shore.co.il] extends: .python3 stage: test image: registry.shore.co.il/ci-images:python3 variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" before_script: - python3 -m pip install dist/*.whl script: Loading @@ -28,22 +28,13 @@ build-wheel: needs: - job: build-wheel artifacts: true cache: paths: - .cache/ pypi-upload: tags: [ns4.shore.co.il] extends: .python3 stage: deploy image: registry.shore.co.il/ci-images:python3 script: - twine check dist/* - twine upload --config-file "$pypirc" dist/* variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" cache: paths: - .cache/ only: - tags needs: Loading Loading
templates/python.yml +12 −21 Original line number Diff line number Diff line --- build-wheel: .python3: tags: [ns4.shore.co.il] stage: build image: registry.shore.co.il/ci-images:python3 variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" cache: paths: - .cache/ build-wheel: extends: .python3 stage: build script: - python3 setup.py check --verbose --metadata --restructuredtext --strict - python3 setup.py bdist_wheel artifacts: paths: - dist/*.whl variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" cache: paths: - .cache/ .install-wheel: tags: [ns4.shore.co.il] extends: .python3 stage: test image: registry.shore.co.il/ci-images:python3 variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" before_script: - python3 -m pip install dist/*.whl script: Loading @@ -28,22 +28,13 @@ build-wheel: needs: - job: build-wheel artifacts: true cache: paths: - .cache/ pypi-upload: tags: [ns4.shore.co.il] extends: .python3 stage: deploy image: registry.shore.co.il/ci-images:python3 script: - twine check dist/* - twine upload --config-file "$pypirc" dist/* variables: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" cache: paths: - .cache/ only: - tags needs: Loading