From 9c18e575f631b3f1f6d57d818419e19bfeacea48 Mon Sep 17 00:00:00 2001 From: Dmitry Yashunin Date: Sun, 20 Apr 2025 16:15:23 -0700 Subject: [PATCH 1/4] Update CI --- .github/workflows/build.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15cd2ea6..e73ff412 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,10 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.7", "3.8", "3.9", "3.10"] - exclude: - - os: macos-latest - python-version: "3.7" + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -33,10 +30,10 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Build run: | From 9a31e7336a600d36d7e31206fd72cda6865926fa Mon Sep 17 00:00:00 2001 From: Dmitry Yashunin Date: Sun, 20 Apr 2025 16:27:07 -0700 Subject: [PATCH 2/4] Fix1 --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e73ff412..8c246aa8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,8 +21,13 @@ jobs: - name: Test timeout-minutes: 15 run: | - python -m unittest discover -v --start-directory examples/python --pattern "example*.py" + # Run example files directly + for example in examples/python/example*.py; do + python "$example" + done + # Run the unittest tests python -m unittest discover -v --start-directory tests/python --pattern "bindings_test*.py" + shell: bash test_cpp: runs-on: ${{ matrix.os }} From 549df3ef2982f78668cf8b6457f2ba52d052bc43 Mon Sep 17 00:00:00 2001 From: Dmitry Yashunin Date: Sun, 20 Apr 2025 16:31:55 -0700 Subject: [PATCH 3/4] Log example file names --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8c246aa8..0a620f98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,9 @@ jobs: run: | # Run example files directly for example in examples/python/example*.py; do + echo "Running example: $example" python "$example" + echo "--------------------------------" done # Run the unittest tests python -m unittest discover -v --start-directory tests/python --pattern "bindings_test*.py" From 0cbff4ec92c5d396f422dda7d1aade142e82b239 Mon Sep 17 00:00:00 2001 From: Dmitry Yashunin Date: Sun, 20 Apr 2025 16:35:35 -0700 Subject: [PATCH 4/4] Refactoring --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a620f98..ebeeaa90 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,15 +18,20 @@ jobs: - name: Build and install run: python -m pip install . - - name: Test + - name: Test examples timeout-minutes: 15 run: | # Run example files directly for example in examples/python/example*.py; do echo "Running example: $example" python "$example" - echo "--------------------------------" + echo "---------------------------------------" done + shell: bash + + - name: Test bindings + timeout-minutes: 15 + run: | # Run the unittest tests python -m unittest discover -v --start-directory tests/python --pattern "bindings_test*.py" shell: bash