-
Notifications
You must be signed in to change notification settings - Fork 72
53 lines (49 loc) · 1.21 KB
/
Copy pathpython.yml
File metadata and controls
53 lines (49 loc) · 1.21 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
---
name: Python
'on':
push:
paths:
- .github/workflows/python.yml
- c/include/**
- python/*.cfg
- python/*.in
- python/*.py
- python/*.toml
- python/src/**
- python/tests/**
pull_request:
paths:
- .github/workflows/python.yml
- c/include/**
- python/*.cfg
- python/*.in
- python/*.py
- python/*.toml
- python/src/**
- python/tests/**
permissions:
contents: read
concurrency:
group: ${{ github.ref }}-python
cancel-in-progress: true
jobs:
pytest:
name: Test
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, windows-latest, macos-latest]
pyver: ['3.9', '3.10', '3.11', '3.12', '3.13', 3.13t, '3.14', 3.14t]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.pyver }}
- run: pipx run build --sdist python
- run: pip install ./python[test] numpy
- run: pytest python/tests
- run: pytest --enable-injection python/tests
- run: pip uninstall -y numpy
- run: pytest python/tests
- run: pytest --enable-injection python/tests