circleci configuration for python builds
This commit is contained in:
parent
cdb30f2dc0
commit
bdb7851064
41
.circleci/config.yml
Normal file
41
.circleci/config.yml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user