Skip to content

Commit 58f9646

Browse files
committed
Update CI jobs
1 parent 553e9e5 commit 58f9646

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.circleci/config.yml

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
python: circleci/python@1.5.0
4+
python: circleci/python@2.1.1
55

66
jobs:
77
analysis:
@@ -28,9 +28,30 @@ jobs:
2828
path: test_results.xml
2929
- store_artifacts:
3030
path: htmlcov
31+
publish:
32+
executor: python/default
33+
steps:
34+
- checkout
35+
- run:
36+
name: Publish
37+
command:
38+
poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
3139

3240
workflows:
3341
unit_test:
3442
jobs:
35-
- analysis
36-
- test
43+
- analysis:
44+
filters: &filters-test
45+
tags:
46+
ignore: /.*/
47+
- test:
48+
filters:
49+
<<: *filters-test
50+
deploy:
51+
jobs:
52+
- publish:
53+
filters:
54+
tags:
55+
only: /[0-9]+(\.[0-9]+)*/
56+
branches:
57+
ignore: /.*/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![CircleCI](https://circleci.com/gh/valletw/pyummeter.svg?style=shield)](https://github.com/valletw/pyummeter)
1+
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/valletw/pyummeter/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/valletw/pyummeter/tree/main)
22

33
# Python UM-Meter interface
44

0 commit comments

Comments
 (0)