Skip to content

Commit 7acaa86

Browse files
psychedelicioushipsterusername
authored andcommitted
ci: get ci working with uv instead of pip
Lots of squashed experimentation heh: ci: manually specify python version in tests ci: whoops typo in ruff cmds ci: specify python versions for uv python install ci: install python verbosely ci: try forcing python preference? ci: try forcing python preference a different way? ci: try in a venv? ci: it works, but try without venv ci: oh maybe we need --preview? ci: poking it with a stick ci: it works, add summary to pytest output ci: fix pytest output experiment: simulate test failure Revert "experiment: simulate test failure" This reverts commit b99ca51. ci: just use default pytest output cI: attempt again to use uv to install python cI: attempt again again to use uv to install python Revert "cI: attempt again again to use uv to install python" This reverts commit 3cba861. Revert "cI: attempt again to use uv to install python" This reverts commit b30f227.
1 parent 96c0393 commit 7acaa86

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/python-checks.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ jobs:
6767
version: '0.6.4'
6868
enable-cache: true
6969

70-
- name: install python
71-
if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
72-
run: uv python install
73-
7470
- name: ruff check
7571
if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
7672
run: uv tool run ruff@0.11.2 check --output-format=github .

.github/workflows/python-tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
timeout-minutes: 15 # expected run time: 2-6 min, depending on platform
6262
env:
6363
PIP_USE_PEP517: '1'
64-
# uv requires a venv by default - but for this, we can simply use the system python
6564
UV_SYSTEM_PYTHON: 1
6665

6766
steps:
@@ -94,9 +93,11 @@ jobs:
9493
enable-cache: true
9594
python-version: ${{ matrix.python-version }}
9695

97-
- name: install python
96+
- name: setup python
9897
if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
99-
run: uv python install
98+
uses: actions/setup-python@v5
99+
with:
100+
python-version: ${{ matrix.python-version }}
100101

101102
- name: install dependencies
102103
if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
@@ -106,4 +107,4 @@ jobs:
106107

107108
- name: run pytest
108109
if: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
109-
run: uv run pytest -v
110+
run: pytest

0 commit comments

Comments
 (0)