From bdb7851064320f47ca176be1cab983562ec6fe87 Mon Sep 17 00:00:00 2001 From: yage Date: Mon, 19 Feb 2024 18:33:59 -0700 Subject: [PATCH] circleci configuration for python builds --- .circleci/config.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .circleci/config.yml 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