mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-09-02 22:12:25 +08:00
fix ci
This commit is contained in:
parent
90d881a166
commit
a62e055e7f
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user