This commit is contained in:
felinae98 2021-06-17 11:21:53 +08:00
parent 90d881a166
commit a62e055e7f
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -12,39 +12,26 @@ orbs:
workflows:
build-test-publish:
jobs:
- install
- test:
requires:
- install
- build:
- test
- build-publish:
requires:
- test
filters:
tags:
only: /^v.*/
- publish:
requires:
- build
filters:
tags:
only: /^v.*/
jobs:
install:
test:
docker:
- image: cimg/python:3.9
steps:
- checkout
- poetry/install
test:
docker:
- image: cimg/python:3.9
steps:
- poetry/shell:
args: pytest --junitxml=test-results/junit.xml
- store_test_results:
path: test-results
build:
build-publish:
docker:
- image: cimg/python:3.9
steps:
@ -53,9 +40,5 @@ jobs:
path: dist
- swissknife/publish_github_release:
tag: ${CIRCLE_TAG}
publish:
docker:
- image: cimg/python:3.9
steps:
- run: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD