-
Notifications
You must be signed in to change notification settings - Fork 455
69 lines (58 loc) · 1.71 KB
/
Copy pathtest_uv_python.yml
File metadata and controls
69 lines (58 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: UV Python Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test_uv_python:
name: "Test with UV Python 3.14"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv and set Python 3.14
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
- name: Create virtual environment
run: |
uv venv --python 3.14
- name: Set up system dependencies
run: |
sudo apt-get update
sudo apt-get install -qy \
pkg-config \
libdebuginfod-dev \
liblz4-dev \
gdb \
npm
- name: Build libunwind from source
run: |
cd /tmp
LIBUNWIND_VERS=1.8.3
curl -LO https://github.com/libunwind/libunwind/releases/download/v$LIBUNWIND_VERS/libunwind-$LIBUNWIND_VERS.tar.gz
tar xf libunwind-$LIBUNWIND_VERS.tar.gz
cd libunwind-$LIBUNWIND_VERS
./configure --disable-minidebuginfo --prefix=/usr/local
make
sudo make install
sudo ldconfig
- name: Install Python dependencies
run: |
uv pip install --upgrade pip cython pkgconfig
uv pip install -r requirements-test.txt
- name: Build package
run: |
make build-js
uv pip install -e .
- name: Disable ptrace security restrictions
run: |
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- name: Run tests
run: |
uv run pytest -vvv --log-cli-level=info tests