Skip to content

Commit eaa048d

Browse files
chore(ci): CG-10672 add back 3.13 mac build (#302)
1 parent b90a9fe commit eaa048d

File tree

6 files changed

+26
-28
lines changed

6 files changed

+26
-28
lines changed

.github/actions/setup-backend/action.yml renamed to .github/actions/setup-environment/action.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
2-
name: "Setup Graph Sitter"
3-
description: "Setup Graph Sitter"
1+
name: "Setup Environment"
2+
description: "Setup Environment"
43
inputs:
54
python-version:
65
required: false
@@ -9,11 +8,6 @@ inputs:
98
runs:
109
using: "composite"
1110
steps:
12-
# - name: ccache
13-
# uses: hendrikmuhs/[email protected]
14-
# with:
15-
# create-symlink: true
16-
# key: ${{ runner.os }}
1711
- name: Install UV
1812
uses: astral-sh/[email protected]
1913
id: setup-uv

.github/workflows/cache-warm-up.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
ref: develop # Ensure we're operating on the 'develop' branch
2929

3030
- name: Setup backend
31-
uses: ./.github/actions/setup-backend
31+
uses: ./.github/actions/setup-environment
3232

3333
warm-up-cache:
3434
runs-on: ubuntu-latest
@@ -47,7 +47,7 @@ jobs:
4747
ref: develop # Ensure we're operating on the 'develop' branch
4848

4949
- name: Setup backend
50-
uses: ./.github/actions/setup-backend
50+
uses: ./.github/actions/setup-environment
5151

5252
- name: Cache oss-repos
5353
uses: ./.github/actions/setup-oss-repos

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fetch-depth: 0
2222

2323
- name: Setup backend
24-
uses: ./.github/actions/setup-backend
24+
uses: ./.github/actions/setup-environment
2525

2626
- name: Get changed files
2727
id: changed-files

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
token: ${{ secrets.REPO_SCOPED_TOKEN }}
2424

2525
- name: Setup backend
26-
uses: ./.github/actions/setup-backend
26+
uses: ./.github/actions/setup-environment
2727

2828
- name: Setup-pre-commit
2929
run: uv tool install pre-commit --with pre-commit-uv --force-reinstall

.github/workflows/release.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Build & Release
22

33
on:
44
push:
@@ -16,7 +16,7 @@ permissions:
1616

1717
jobs:
1818
build:
19-
name: Build ${{ matrix.os }}
19+
name: Build 3.${{ matrix.python }} ${{ matrix.os }}
2020
runs-on: ${{ matrix.os }}
2121
strategy:
2222
fail-fast: false
@@ -26,9 +26,13 @@ jobs:
2626
ubuntu-24.04-arm,
2727
macos-latest,
2828
]
29+
python: [
30+
12,
31+
13,
32+
]
2933

3034
steps:
31-
- name: Dump GitHub context
35+
- name: Github context
3236
env:
3337
GITHUB_CONTEXT: ${{ toJson(github) }}
3438
run: echo "$GITHUB_CONTEXT"
@@ -38,12 +42,12 @@ jobs:
3842
fetch-depth: 0
3943
ref: ${{ github.event.pull_request.head.ref || github.ref }}
4044

41-
- name: Setup backend
42-
uses: ./.github/actions/setup-backend
45+
- name: Setup environment
46+
uses: ./.github/actions/setup-environment
4347
with:
44-
python-version: "3.12"
48+
python-version: 3.${{ matrix.python }}
4549

46-
- name: Get history and tags for SCM versioning to work
50+
- name: Fetch tags
4751
run: |
4852
git branch
4953
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
@@ -53,13 +57,13 @@ jobs:
5357
uses: pypa/[email protected]
5458
env:
5559
HATCH_BUILD_HOOKS_ENABLE: true
56-
CIBW_SKIP: '{cp313-macosx_*,*i686*,*musllinux*}'
57-
60+
CIBW_BUILD: "*cp3${{ matrix.python }}*"
61+
CIBW_SKIP: '{*i686*,*musllinux*}'
5862

5963
- uses: actions/upload-artifact@v4
6064
with:
61-
name: wheels-${{ matrix.os }}
62-
path: dist/
65+
name: wheels-${{ matrix.os }}-3.${{ matrix.python }}
66+
path: ./wheelhouse/*.whl
6367

6468
release:
6569
if: startsWith(github.ref, 'refs/tags/')
@@ -70,7 +74,7 @@ jobs:
7074
- uses: actions/checkout@v4
7175

7276
- name: Setup backend
73-
uses: ./.github/actions/setup-backend
77+
uses: ./.github/actions/setup-environment
7478

7579
- name: Download All Artifacts
7680
uses: actions/download-artifact@v4

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020
- name: Setup backend
21-
uses: ./.github/actions/setup-backend
21+
uses: ./.github/actions/setup-environment
2222
- name: Run ATS and Tests
2323
uses: ./.github/actions/run_ats
2424
timeout-minutes: 15
@@ -49,7 +49,7 @@ jobs:
4949
steps:
5050
- uses: actions/checkout@v4
5151
- name: Setup backend
52-
uses: ./.github/actions/setup-backend
52+
uses: ./.github/actions/setup-environment
5353
- name: Cache oss-repos
5454
uses: ./.github/actions/setup-oss-repos
5555
- name: Run ATS and Tests
@@ -72,7 +72,7 @@ jobs:
7272
steps:
7373
- uses: actions/checkout@v4
7474
- name: Setup backend
75-
uses: ./.github/actions/setup-backend
75+
uses: ./.github/actions/setup-environment
7676

7777
- name: Cache oss-repos
7878
uses: ./.github/actions/setup-oss-repos
@@ -136,7 +136,7 @@ jobs:
136136
steps:
137137
- uses: actions/checkout@v4
138138
- name: Setup backend
139-
uses: ./.github/actions/setup-backend
139+
uses: ./.github/actions/setup-environment
140140
- name: Test with pytest
141141
timeout-minutes: 5
142142
env:

0 commit comments

Comments
 (0)