-
Notifications
You must be signed in to change notification settings - Fork 161
73 lines (56 loc) · 1.94 KB
/
Copy pathtesting.yml
File metadata and controls
73 lines (56 loc) · 1.94 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
70
71
72
73
name: Python package
on: [push, pull_request]
jobs:
test-scipy:
name: Test SciPy Backend (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies (pure Python / SciPy mode)
run: |
uv venv .venv --python ${{ matrix.python-version }}
uv pip install --python .venv/bin/python -e . pytest
- name: Run tests (SciPy backend)
run: .venv/bin/pytest openpiv/test -v
test-rust:
name: Test Rust Backend (Python 3.12)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python 3.12
run: uv python install 3.12
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies & maturin
run: |
uv venv .venv --python 3.12
uv pip install --python .venv/bin/python -e . pytest maturin
- name: Build & install openpiv_rust
run: |
source .venv/bin/activate
maturin develop --manifest-path crates/openpiv_rust/Cargo.toml --release
- name: Run tests (Rust backend active)
run: .venv/bin/pytest openpiv/test -v
security-audit:
name: Security & Vulnerability Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Run Dependency Security Audit (Cargo.lock & Python)
run: uv run python .agents/skills/security-audit/scripts/audit_deps.py