-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.09 KB
/
test_python.yml
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
name: Test Python extension package
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: pip install numpy pytest maturin
- name: Build wheels for extend-quantity
working-directory: ./example/extend_quantity
run: |
maturin build --release --out dist
pip install extend_quantity --no-index --find-links dist --force-reinstall
- name: Build wheels for si-units
working-directory: ./si-units
run: |
maturin build --release --out dist
pip install si-units --no-index --find-links dist --force-reinstall
- name: Test with pytest
run: pytest example/extend_quantity/test.py