22
33on :
44 push :
5- branches : [ "*" ]
5+ branches :
6+ - " main"
67 pull_request :
7- branches : [ "main" ]
88
99env :
1010 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -17,19 +17,22 @@ jobs:
1717 strategy :
1818 fail-fast : false
1919 matrix :
20- os : [ ubuntu-latest, macos-latest ]
20+ os : [ ubuntu-latest ]
2121 runs-on : ${{ matrix.os }}
2222
2323 steps :
24- - uses : actions/checkout@v3
24+ - uses : actions/checkout@v4
2525
26- - name : Configure CMake
26+ - name : ' Install dependencies'
27+ run : sudo apt-get install -y cmake pybind11-dev
28+
29+ - name : ' Configure CMake'
2730 run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
2831
29- - name : Build
32+ - name : ' Build'
3033 run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
3134
32- - name : Test
35+ - name : ' Test'
3336 working-directory : ${{github.workspace}}/build
3437 # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
3538 run : ctest -C ${{env.BUILD_TYPE}}
@@ -38,14 +41,14 @@ jobs:
3841 name : " Python Tests"
3942 strategy :
4043 matrix :
41- os : [ ubuntu-latest, macos-latest ]
44+ os : [ ubuntu-latest ]
4245 python-version : [ '3.10', '3.11', '3.12', '3.13' ]
4346 runs-on : ${{ matrix.os }}
4447
4548 steps :
46- - uses : actions/checkout@v3
49+ - uses : actions/checkout@v4
4750
48- - name : Set up Python
51+ - name : ' Set up Python'
4952 uses : actions/setup-python@v4
5053 with :
5154 python-version : ${{ matrix.python-version }}
5457 uses : astral-sh/setup-uv@v5
5558 with :
5659 cache-dependency-glob : " **/pyproject.toml"
60+ enable-cache : true
5761
58- - name : Install dependencies
62+ - name : ' Install dependencies'
5963 run : uv sync --locked --all-extras --dev
6064
6165 - name : ' Run unit tests'
62- run : pytest -n auto
66+ run : uv run pytest -n auto
0 commit comments