upload to pypi workflow
#
version: 2
jobs:
+ upload-to-pypi:
+ docker:
+ - image: circleci/python:3.7.1
+ working_directory: ~/repo
+ steps:
+ - checkout
+
+ # Download and cache dependencies
+ - restore_cache:
+ keys:
+ - v1-dependencies-poetry
+
+ - run:
+ name: install dependencies
+ command: |
+ python3 -m venv venv
+ . venv/bin/activate
+ pip install poetry
+
+ - save_cache:
+ paths:
+ - ./venv
+ key: v1-dependencies-poetry
+
+ - run:
+ name: build release
+ command: |
+ . venv/bin/activate
+ poetry --help
test-release:
docker:
- image: circleci/python:3.7.1
@@ -152,3 +181,6 @@ workflows:
- test-release
requires:
- build-release
+ - upload-to-pypi:
+ requires:
+ - test_release
