Skip to content

Commit 7146684

Browse files
committed
ci(pytest): use uv to install pytest environment
1 parent 0d6111d commit 7146684

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/pytest.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ jobs:
4040
- name: Checkout
4141
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4242

43-
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
43+
# https://docs.astral.sh/uv/guides/integration/github/
44+
- name: Install uv and set the python version
45+
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
4546
with:
4647
python-version: ${{ matrix.python-version }}
48+
activate-environment: true
4749

4850
- name: Install dependencies
4951
run: |
50-
python -m pip install 'pip==25.0.1'
51-
pip install -e .[dev]
52+
# pip causes problems, so avoid it
53+
# uv pip install 'pip==25.0.1'
54+
uv pip install -e .[dev]
5255
5356
- name: Install apt packages
5457
run: |

0 commit comments

Comments
 (0)