Skip to content

Commit 39fd33b

Browse files
authored
Update ci (#625)
* Update CI * Fix1 * Log example file names * Refactoring
1 parent 020de1a commit 39fd33b

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,44 @@ jobs:
88
strategy:
99
matrix:
1010
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"]
1512
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-python@v4
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
1815
with:
1916
python-version: ${{ matrix.python-version }}
2017

2118
- name: Build and install
2219
run: python -m pip install .
2320

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
2533
timeout-minutes: 15
2634
run: |
27-
python -m unittest discover -v --start-directory examples/python --pattern "example*.py"
35+
# Run the unittest tests
2836
python -m unittest discover -v --start-directory tests/python --pattern "bindings_test*.py"
37+
shell: bash
2938

3039
test_cpp:
3140
runs-on: ${{ matrix.os }}
3241
strategy:
3342
matrix:
3443
os: [ubuntu-latest, windows-latest, macos-latest]
3544
steps:
36-
- uses: actions/checkout@v3
37-
- uses: actions/setup-python@v4
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-python@v5
3847
with:
39-
python-version: "3.10"
48+
python-version: "3.11"
4049

4150
- name: Build
4251
run: |

0 commit comments

Comments
 (0)