Skip to content

Commit 139e726

Browse files
committed
ci: Test with uv interpreters
`uv` uses the `python-standalone` project for its interpreters, which use an unusual and not fully supported build workflow. Add a test to our CI to ensure that pytest works properly with uv's interpreters. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
1 parent 7ddd55a commit 139e726

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,37 @@ jobs:
116116
PYTHON_TEST_VERSION: ${{ matrix.python_version }}
117117
run: python3 -m pytest tests -n auto -vvv
118118

119+
test_attaching_to_uv_interpreters:
120+
needs: [build_wheels]
121+
runs-on: ubuntu-latest
122+
strategy:
123+
fail-fast: false
124+
matrix:
125+
python_version: ["3.13"]
126+
steps:
127+
- uses: actions/checkout@v5
128+
- uses: actions/download-artifact@v5
129+
with:
130+
name: "manylinux_x86_64-wheels"
131+
path: dist
132+
- name: Install uv
133+
uses: astral-sh/setup-uv@v6
134+
with:
135+
version: latest
136+
python-version: ${{ matrix.python_version }}
137+
activate-environment: true
138+
- name: Install Python dependencies
139+
run: |
140+
uv pip install -r requirements-test.txt
141+
uv pip install --no-index --find-links=dist/ --only-binary=pystack pystack
142+
- name: Disable ptrace security restrictions
143+
run: |
144+
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
145+
- name: Run pytest
146+
env:
147+
PYTHON_TEST_VERSION: ${{ matrix.python_version }}
148+
run: python3 -m pytest tests -n auto -vvv
149+
119150
test_wheels:
120151
needs: [build_wheels]
121152
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)