Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use CircleCI's Python Orb
  • Loading branch information
cclauss committed Jan 2, 2026
commit f1d3383f3a4ef5a2eff492bdc07c991f74e8abe6
43 changes: 25 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,38 @@
version: 2.1

build_and_test: &build_and_test_steps
- checkout
# Do not use `sudo pip`
# pipx is already installed but `pipx list` is empty
- run: python --version ; pip --version ; pipx --version ; pwd ; ls -l
- run: pip install pytest -r requirements.txt
- run: pip install --editable .
- run: pytest
# https://circleci.com/developer/orbs/orb/circleci/python#usage-work-with-uv

version: '2.1'
orbs:
python: circleci/[email protected]

jobs:
pre-commit:
docker:
- image: cimg/python:3.11
executor:
name: python/default
tag: "3.14"
steps:
- checkout
- run: pipx run pre-commit run --all-files --show-diff-on-failure
- python/install-packages:
pkg-manager: uv
- run:
command: |
uvx pre-commit run --all-files --show-diff-on-failure

pytest:
docker:
- image: cimg/python:3.13
steps: *build_and_test_steps

executor:
name: python/default
tag: "3.14"
steps:
- checkout
- python/install-packages:
pkg-manager: uv
- run:
command: |
uv venv --allow-existing
pip install --editable ".[testing]"
pytest

workflows:
build:
main:
jobs:
- pre-commit
- pytest
Loading