Skip to content

Commit fd46b6b

Browse files
committed
update circle config to use uv
1 parent 668245f commit fd46b6b

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

.circleci/config.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,39 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/python:3.5.6-jessie-browsers
5+
- image: 218546966473.dkr.ecr.us-east-1.amazonaws.com/circle-ci:stitch-tap-tester-uv
66
steps:
77
- checkout
88
- run:
99
name: 'Setup virtual env'
1010
command: |
11-
virtualenv -p python3 ~/.virtualenvs/tap-clubspeed
12-
source ~/.virtualenvs/tap-clubspeed/bin/activate
13-
pip install .
14-
pip install pylint
15-
pylint tap_clubspeed -d C,R,W
11+
uv venv --python 3.9 /usr/local/share/virtualenvs/tap-clubspeed
12+
source /usr/local/share/virtualenvs/tap-clubspeed
13+
uv pip install .
14+
uv pip install pylint
15+
uv pylint tap_clubspeed -d C,R,W
1616
- run:
1717
name: 'Unit Tests'
1818
command: |
19-
source ~/.virtualenvs/tap-clubspeed/bin/activate
20-
pip install nose
21-
nosetests
19+
source /usr/local/share/virtualenvs/tap-clubspeed
20+
uv pip install pytest coverage
21+
coverage run -m pytests tests
22+
coverage html
23+
24+
workflows:
25+
version: 2
26+
commit:
27+
jobs:
28+
- build:
29+
context: circleci-user
30+
build_daily:
31+
triggers:
32+
- schedule:
33+
cron: "0 0 * * *"
34+
filters:
35+
branches:
36+
only:
37+
- master
38+
jobs:
39+
- build:
40+
context: circleci-user

0 commit comments

Comments
 (0)