Merge pull request #14 from High-Performance-IO/cd-cd-update #50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Python Bindings Unit Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: python-tests-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| python-tests: | |
| name: Python ${{ matrix.python_version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-24.04, macos-15-intel, macos-26] | |
| python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python ${{ matrix.python_version }} | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python_version }} | |
| - name: Install build tools on Ubuntu | |
| if: startsWith(matrix.os, 'ubuntu-') | |
| run: sudo apt-get update && sudo apt-get install -y cmake git ninja-build | |
| - name: Set up Homebrew | |
| if: startsWith(matrix.os, 'macos-') | |
| uses: Homebrew/actions/setup-homebrew@main | |
| - name: Install build tools on macOS | |
| if: startsWith(matrix.os, 'macos-') | |
| run: brew install cmake ninja | |
| - name: Build wheels | |
| run: python -m pip install ".[test]" | |
| - name: Run Python tests | |
| run: python -m pytest -v tests/python_bindings_tests.py |