File tree Expand file tree Collapse file tree 2 files changed +450
-18
lines changed
Expand file tree Collapse file tree 2 files changed +450
-18
lines changed Original file line number Diff line number Diff line change 1- version : 2.1
2-
3- build_and_test : &build_and_test_steps
4- - checkout
5- # Do not use `sudo pip`
6- # pipx is already installed but `pipx list` is empty
7- - run : python --version ; pip --version ; pipx --version ; pwd ; ls -l
8- - run : pip install pytest -r requirements.txt
9- - run : pip install --editable .
10- - run : pytest
1+ # https://circleci.com/developer/orbs/orb/circleci/python#usage-work-with-uv
112
3+ version : ' 2.1'
4+ orbs :
5+ python :
circleci/[email protected] 126
137jobs :
148 pre-commit :
15- docker :
16- - image : cimg/python:3.11
9+ executor :
10+ name : python/default
11+ tag : " 3.14"
1712 steps :
1813 - checkout
19- - run : pipx run pre-commit run --all-files --show-diff-on-failure
14+ - python/install-packages :
15+ pkg-manager : uv
16+ - run :
17+ command : |
18+ uvx pre-commit run --all-files --show-diff-on-failure
2019
2120 pytest :
22- docker :
23- - image : cimg/python:3.13
24- steps : *build_and_test_steps
25-
21+ executor :
22+ name : python/default
23+ tag : " 3.14"
24+ steps :
25+ - checkout
26+ - python/install-packages :
27+ pkg-manager : uv
28+ - run :
29+ command : |
30+ uv venv --allow-existing
31+ pip install --editable ".[testing]"
32+ pytest
2633
2734workflows :
28- build :
35+ main :
2936 jobs :
3037 - pre-commit
3138 - pytest
You can’t perform that action at this time.
0 commit comments