|
8 | 8 | strategy:
|
9 | 9 | matrix:
|
10 | 10 | os: [ubuntu-latest, windows-latest, macos-latest]
|
11 |
| - python-version: ["3.7", "3.8", "3.9", "3.10"] |
12 |
| - exclude: |
13 |
| - - os: macos-latest |
14 |
| - python-version: "3.7" |
| 11 | + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
15 | 12 | steps:
|
16 |
| - - uses: actions/checkout@v3 |
17 |
| - - uses: actions/setup-python@v4 |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - uses: actions/setup-python@v5 |
18 | 15 | with:
|
19 | 16 | python-version: ${{ matrix.python-version }}
|
20 | 17 |
|
21 | 18 | - name: Build and install
|
22 | 19 | run: python -m pip install .
|
23 | 20 |
|
24 |
| - - name: Test |
| 21 | + - name: Test examples |
| 22 | + timeout-minutes: 15 |
| 23 | + run: | |
| 24 | + # Run example files directly |
| 25 | + for example in examples/python/example*.py; do |
| 26 | + echo "Running example: $example" |
| 27 | + python "$example" |
| 28 | + echo "---------------------------------------" |
| 29 | + done |
| 30 | + shell: bash |
| 31 | + |
| 32 | + - name: Test bindings |
25 | 33 | timeout-minutes: 15
|
26 | 34 | run: |
|
27 |
| - python -m unittest discover -v --start-directory examples/python --pattern "example*.py" |
| 35 | + # Run the unittest tests |
28 | 36 | python -m unittest discover -v --start-directory tests/python --pattern "bindings_test*.py"
|
| 37 | + shell: bash |
29 | 38 |
|
30 | 39 | test_cpp:
|
31 | 40 | runs-on: ${{ matrix.os }}
|
32 | 41 | strategy:
|
33 | 42 | matrix:
|
34 | 43 | os: [ubuntu-latest, windows-latest, macos-latest]
|
35 | 44 | steps:
|
36 |
| - - uses: actions/checkout@v3 |
37 |
| - - uses: actions/setup-python@v4 |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - uses: actions/setup-python@v5 |
38 | 47 | with:
|
39 |
| - python-version: "3.10" |
| 48 | + python-version: "3.11" |
40 | 49 |
|
41 | 50 | - name: Build
|
42 | 51 | run: |
|
|
0 commit comments