Skip to content

Commit 412aa6a

Browse files
committed
Update CI pipeline, remove macos for time being
1 parent d6f06a8 commit 412aa6a

File tree

3 files changed

+60
-12
lines changed

3 files changed

+60
-12
lines changed

.github/workflows/CI.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ "*" ]
5+
branches:
6+
- "main"
67
pull_request:
7-
branches: [ "main" ]
88

99
env:
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 }}
@@ -54,9 +57,10 @@ jobs:
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

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ classifiers = [
2020

2121

2222
[dependency-groups]
23+
build = [
24+
"pybind11>=2.13.6",
25+
]
2326
dev = [
2427
"pre-commit>=4.2.0",
2528
"pytest>=8.4.0",
29+
"pytest-xdist>=3.7.0",
2630
"ruff>=0.11.13",
31+
{ include-group = "build" },
2732
]
2833

2934
[build-system]

uv.lock

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)