diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..8a72e6f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,41 @@ +--- +version: 2.1 + +orbs: + python: circleci/python@2.1.1 + +executors: + python: + docker: + - image: cimg/python:3.11 + resource_class: small + + +jobs: + python-test: + executor: python + working_directory: ./py/lib + steps: + - run: | + : \ + && pip install -e . \ + && pytest \ + ; + + python-publish: + executor: python + steps: + - checkout + - python/dist + - run: pip install twine && twine upload dist/* + + +workflows: + build: + jobs: + - python-test + - publish: + requires: [test] + filters: + branches: + only: main