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