Skip to content

Commit c465696

Browse files
skuttlemandsprayberryAndy Lu
authored
SAC-28245: update circle config to use uv (#2)
* update circle config to use uv * Empty to test circle Co-authored-by: Andy Lu <andy.lu@qlik.com> Co-authored-by: Ben Allred <ben.allred@qlik.com> * Point to the actvate cmd Co-authored-by: Andy Lu <andy.lu@qlik.com> Co-authored-by: Ben Allred <ben.allred@qlik.com> * Pylint in its own step Co-authored-by: Andy Lu <andy.lu@qlik.com> Co-authored-by: Ben Allred <ben.allred@qlik.com> * Fix the copypasta Co-authored-by: Andy Lu <andy.lu@qlik.com> Co-authored-by: Ben Allred <ben.allred@qlik.com> * Fix typo Co-authored-by: Andy Lu <andy.lu@qlik.com> Co-authored-by: Ben Allred <ben.allred@qlik.com> --------- Co-authored-by: Dylan Sprayberry <dylan.sprayberry@qlik.com> Co-authored-by: Andy Lu <andy.lu@qlik.com>
1 parent 668245f commit c465696

File tree

1 file changed

+31
-8
lines changed

1 file changed

+31
-8
lines changed

.circleci/config.yml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,43 @@ 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
11+
uv venv --python 3.9 /usr/local/share/virtualenvs/tap-clubspeed
12+
source /usr/local/share/virtualenvs/tap-clubspeed/bin/activate
13+
uv pip install .
14+
- run:
15+
name: 'pylint'
16+
command: |
17+
source /usr/local/share/virtualenvs/tap-clubspeed/bin/activate
18+
uv pip install pylint
1519
pylint tap_clubspeed -d C,R,W
1620
- run:
1721
name: 'Unit Tests'
1822
command: |
19-
source ~/.virtualenvs/tap-clubspeed/bin/activate
20-
pip install nose
21-
nosetests
23+
source /usr/local/share/virtualenvs/tap-clubspeed/bin/activate
24+
uv pip install pytest coverage
25+
coverage run -m pytest tests
26+
coverage html
27+
28+
workflows:
29+
version: 2
30+
commit:
31+
jobs:
32+
- build:
33+
context: circleci-user
34+
build_daily:
35+
triggers:
36+
- schedule:
37+
cron: "0 0 * * *"
38+
filters:
39+
branches:
40+
only:
41+
- master
42+
jobs:
43+
- build:
44+
context: circleci-user

0 commit comments

Comments
 (0)