Repository navigation
47 lines (44 loc) · 1.57 KB
/
Copy pathcheck-python.yml
File metadata and controls
47 lines (44 loc) · 1.57 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
name: Check Python
# Wheel build plus a clean virtual environment run. The merged gate in
# check-typescript.yml also covers the Python suite end to end.
on:
push:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
env:
CARGO_TERM_COLOR: always
jobs:
python:
name: sqlite-pyo3 wheel (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: pnpm/action-setup@v4
with:
version: 10.18.3
- name: Rust Nightly
uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
workspaces: projects/sqlite.rs
- name: Install the wheel build tool
run: python -m pip install --quiet "maturin>=1.7,<2.0"
# The acceptance suite reaches the binding through the Node bridge, so
# stage the native module before running it.
- name: Install dependencies and stage the native binding
run: |
pnpm install --no-frozen-lockfile
node scripts/build-napi.mjs
- name: Build the wheel and run it inside a clean virtual environment
run: node projects/sqlite.ts/packages/sqlite-harness/stages/python/run_tests.mjs
- name: Python acceptance suite
run: python -m unittest discover -v -s projects/sqlite.py/packages/sqlite/tests -t projects/sqlite.py/packages/sqlite/tests