scwrypts/.circleci/config.yml

42 lines
640 B
YAML

---
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