Skip to content

Commit 1cbe22c

Browse files
committed
build fixes, uv for testing
1 parent fb31b78 commit 1cbe22c

2 files changed

Lines changed: 13 additions & 19 deletions

File tree

.github/workflows/test.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@ permissions:
77
contents: read
88
jobs:
99
build-linux-x86_64-extension:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: astral-sh/setup-uv@v3
13+
- uses: astral-sh/setup-uv@v7
1414
with:
1515
enable-cache: true
1616
- run: ./scripts/vendor.sh
1717
- run: make loadable static
1818
- run: uv sync --directory tests
19-
- run: make test-loadable python=./tests/.venv/bin/python
19+
- run: make test-loadable
2020
- uses: actions/upload-artifact@v4
2121
with:
2222
name: sqlite-vec-linux-x86_64-extension
2323
path: dist/*
2424
build-macos-x86_64-extension:
25-
runs-on: macos-13
25+
runs-on: macos-15-intel
2626
steps:
2727
- uses: actions/checkout@v4
28-
- uses: astral-sh/setup-uv@v3
28+
- uses: astral-sh/setup-uv@v7
2929
with:
3030
enable-cache: true
3131
- run: uv python install 3.12
3232
- run: ./scripts/vendor.sh
3333
- run: make loadable static
3434
- run: uv sync --directory tests
35-
- run: make test-loadable python=./tests/.venv/bin/python
35+
- run: make test-loadable
3636
- uses: actions/upload-artifact@v4
3737
with:
3838
name: sqlite-vec-macos-x86_64-extension
@@ -41,13 +41,13 @@ jobs:
4141
runs-on: macos-14
4242
steps:
4343
- uses: actions/checkout@v4
44-
- uses: astral-sh/setup-uv@v3
44+
- uses: astral-sh/setup-uv@v7
4545
with:
4646
enable-cache: true
4747
- run: ./scripts/vendor.sh
4848
- run: make loadable static
4949
- run: uv sync --directory tests
50-
- run: make test-loadable python=./tests/.venv/bin/python
50+
- run: make test-loadable
5151
- uses: actions/upload-artifact@v4
5252
with:
5353
name: sqlite-vec-macos-aarch64-extension
@@ -57,7 +57,7 @@ jobs:
5757
steps:
5858
- uses: actions/checkout@v4
5959
- uses: ilammy/msvc-dev-cmd@v1
60-
- uses: astral-sh/setup-uv@v3
60+
- uses: astral-sh/setup-uv@v7
6161
with:
6262
enable-cache: true
6363
- run: ./scripts/vendor.sh
@@ -66,7 +66,7 @@ jobs:
6666
- run: mkdir dist
6767
- run: cl.exe /fPIC -shared /W4 /Ivendor/ /O2 /LD sqlite-vec.c -o dist/vec0.dll
6868
- run: uv sync --directory tests
69-
- run: make test-loadable python=./tests/.venv/Scripts/python.exe
69+
- run: make test-loadable
7070
shell: bash
7171
- uses: actions/upload-artifact@v4
7272
with:
@@ -209,6 +209,7 @@ jobs:
209209
name: sqlite-vec-pyodide
210210
path: vec0.so
211211
build-ncruces-go:
212+
if: false
212213
runs-on: ubuntu-latest
213214
steps:
214215
- uses: actions/checkout@v4

Makefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ ifdef CONFIG_WINDOWS
3535
LOADABLE_EXTENSION=dll
3636
endif
3737

38-
39-
ifdef python
40-
PYTHON=$(python)
41-
else
42-
PYTHON=python3
43-
endif
44-
4538
ifndef OMIT_SIMD
4639
ifeq ($(shell uname -sm),Darwin x86_64)
4740
CFLAGS += -mavx -DSQLITE_VEC_ENABLE_AVX
@@ -188,10 +181,10 @@ publish-release:
188181

189182
# -k test_vec0_update
190183
test-loadable: loadable
191-
$(PYTHON) -m pytest -vv -s -x tests/test-*.py
184+
uv run pytest -vv -s -x tests/test-*.py
192185

193186
test-loadable-snapshot-update: loadable
194-
$(PYTHON) -m pytest -vv tests/test-loadable.py --snapshot-update
187+
uv run pytest -vv tests/test-loadable.py --snapshot-update
195188

196189
test-loadable-watch:
197190
watchexec --exts c,py,Makefile --clear -- make test-loadable

0 commit comments

Comments
 (0)