Skip to content

Commit 48182ec

Browse files
committed
Add CI
1 parent af379d8 commit 48182ec

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.circleci/config.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Use the latest 2.1 version of CircleCI pipeline process engine.
2+
# See: https://circleci.com/docs/2.0/configuration-reference
3+
version: 2.1
4+
5+
jobs:
6+
test:
7+
docker:
8+
- image: cimg/python:3.10.11
9+
steps:
10+
- checkout
11+
- run:
12+
name: Install uv
13+
command: pip install uv
14+
- run:
15+
name: Run test
16+
command: uv run python -m pytest ./tests -svvvv
17+
build-and-publish:
18+
docker:
19+
- image: cimg/python:3.10.11
20+
steps:
21+
- checkout
22+
- run:
23+
name: Install uv
24+
command: pip install uv
25+
- run:
26+
name: Build
27+
command: uv build
28+
- run:
29+
name: Publish
30+
command: uv publish
31+
32+
workflows:
33+
test:
34+
jobs:
35+
- test:
36+
filters:
37+
# needed for deploy build
38+
# ref: https://discuss.circleci.com/t/builds-for-tags-not-triggering/17681/7
39+
tags:
40+
only: /^.*/
41+
- build-and-publish:
42+
requires:
43+
- test
44+
filters:
45+
branches:
46+
ignore: /.*/
47+
tags:
48+
only: /^.*/

0 commit comments

Comments
 (0)