Merge pull request #312 from toruseo/dependabot/github_actions/action… #107
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 C++ integration | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test-cpp-integration: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install system packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake g++ | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install scikit-build-core nanobind cmake ninja | |
| - name: Install uxsim with C++ extension | |
| run: pip install -e .[dev] | |
| - name: Install test dependencies | |
| run: pip install pytest-xdist pytest-rerunfailures | |
| - name: Run C++ mode tests | |
| run: python -m pytest tests/test_cpp_mode.py -n 4 --durations=0 -v |