-
Notifications
You must be signed in to change notification settings - Fork 451
62 lines (51 loc) · 1.45 KB
/
test_uv_python.yml
File metadata and controls
62 lines (51 loc) · 1.45 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
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
permissions: {}
jobs:
test_uv_python:
name: "Test with UV Python 3.14"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Install uv and set Python 3.14
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
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 \
libunwind-dev \
liblz4-dev \
gdb \
npm
- 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