This repository was archived by the owner on Dec 17, 2025. It is now read-only.
Merge pull request #484 from SpM-lab/dependabot/github_actions/pypa/c… #66
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: Test Python Bindings | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| test-python: | |
| name: Test Python on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| #os: [ubuntu-latest, macos-latest] | |
| os: [ubuntu-latest] | |
| #python-version: ['3.10', '3.11', '3.12'] | |
| python-version: ['3.10'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Install system dependencies (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libeigen3-dev \ | |
| libopenblas-dev \ | |
| libblas-dev \ | |
| liblapack-dev | |
| - name: Install system dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install eigen openblas | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Setup and run tests | |
| working-directory: python | |
| run: | | |
| chmod +x run_tests.sh | |
| ./run_tests.sh | |
| test-python-rollup: | |
| runs-on: ubuntu-latest | |
| needs: test-python | |
| if: always() | |
| steps: | |
| - name: All tests passed | |
| if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} | |
| run: exit 0 | |
| - name: Some tests failed or cancelled | |
| if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} | |
| run: exit 1 |