Skip to content

Commit 2a0e950

Browse files
jhonabreulclaude
andcommitted
CI: switch Python setup to astral-sh/setup-uv, pin macOS to 15
Replace actions/setup-python with astral-sh/setup-uv@v7, mirroring the upstream pythonnet workflow. Uses the cpython-<version><suffix> format for architecture-specific Python builds, and enables uv caching. Pin macOS runner to macos-15 instead of macos-latest. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8480942 commit 2a0e950

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build-test:
1111
name: Build and Test
12-
runs-on: ${{ matrix.os }}-latest
12+
runs-on: ${{ matrix.os == 'macos' && 'macos-15' || format('{0}-latest', matrix.os) }}
1313
timeout-minutes: 15
1414

1515
strategy:
@@ -34,10 +34,12 @@ jobs:
3434
dotnet-version: '10.0.x'
3535

3636
- name: Set up Python ${{ matrix.python }}
37-
uses: actions/setup-python@v5
37+
uses: astral-sh/setup-uv@v7
3838
with:
39-
python-version: ${{ matrix.python }}
40-
architecture: ${{ matrix.platform }}
39+
python-version: cpython-${{ matrix.python }}${{ matrix.os == 'windows' && matrix.platform == 'x86' && '-windows-x86-none' || matrix.os == 'windows' && matrix.platform == 'x64' && '-windows-x86_64-none' || matrix.os == 'macos' && matrix.platform == 'x64' && '-macos-x86_64-none' || '' }}
40+
cache-python: true
41+
activate-environment: true
42+
enable-cache: true
4143

4244
- name: Install dependencies
4345
run: |

0 commit comments

Comments
 (0)