diff --git a/.github/actions/setup-backend/action.yml b/.github/actions/setup-environment/action.yml similarity index 70% rename from .github/actions/setup-backend/action.yml rename to .github/actions/setup-environment/action.yml index f9ca949fd..2c6012040 100644 --- a/.github/actions/setup-backend/action.yml +++ b/.github/actions/setup-environment/action.yml @@ -1,6 +1,5 @@ -# yaml-language-server: $schema=https://json.schemastore.org/github-action.json -name: "Setup Graph Sitter" -description: "Setup Graph Sitter" +name: "Setup Environment" +description: "Setup Environment" inputs: python-version: required: false @@ -9,11 +8,6 @@ inputs: runs: using: "composite" steps: -# - name: ccache -# uses: hendrikmuhs/ccache-action@v1.2 -# with: -# create-symlink: true -# key: ${{ runner.os }} - name: Install UV uses: astral-sh/setup-uv@v5.2 id: setup-uv diff --git a/.github/workflows/cache-warm-up.yml b/.github/workflows/cache-warm-up.yml index 7b080a86e..ecb1af88e 100644 --- a/.github/workflows/cache-warm-up.yml +++ b/.github/workflows/cache-warm-up.yml @@ -28,7 +28,7 @@ jobs: ref: develop # Ensure we're operating on the 'develop' branch - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment warm-up-cache: runs-on: ubuntu-latest @@ -47,7 +47,7 @@ jobs: ref: develop # Ensure we're operating on the 'develop' branch - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment - name: Cache oss-repos uses: ./.github/actions/setup-oss-repos diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 1d0dbc7a3..3b4654ba9 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -21,7 +21,7 @@ jobs: fetch-depth: 0 - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment - name: Get changed files id: changed-files diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c849cb29e..1553851d7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -23,7 +23,7 @@ jobs: token: ${{ secrets.REPO_SCOPED_TOKEN }} - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment - name: Setup-pre-commit run: uv tool install pre-commit --with pre-commit-uv --force-reinstall diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87a54e7d1..a75be2f68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release +name: Build & Release on: push: @@ -16,7 +16,7 @@ permissions: jobs: build: - name: Build ${{ matrix.os }} + name: Build 3.${{ matrix.python }} ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -26,9 +26,13 @@ jobs: ubuntu-24.04-arm, macos-latest, ] + python: [ + 12, + 13, + ] steps: - - name: Dump GitHub context + - name: Github context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" @@ -38,12 +42,12 @@ jobs: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref || github.ref }} - - name: Setup backend - uses: ./.github/actions/setup-backend + - name: Setup environment + uses: ./.github/actions/setup-environment with: - python-version: "3.12" + python-version: 3.${{ matrix.python }} - - name: Get history and tags for SCM versioning to work + - name: Fetch tags run: | git branch git fetch --depth=1 origin +refs/tags/*:refs/tags/* @@ -53,13 +57,13 @@ jobs: uses: pypa/cibuildwheel@v2.22.0 env: HATCH_BUILD_HOOKS_ENABLE: true - CIBW_SKIP: '{cp313-macosx_*,*i686*,*musllinux*}' - + CIBW_BUILD: "*cp3${{ matrix.python }}*" + CIBW_SKIP: '{*i686*,*musllinux*}' - uses: actions/upload-artifact@v4 with: - name: wheels-${{ matrix.os }} - path: dist/ + name: wheels-${{ matrix.os }}-3.${{ matrix.python }} + path: ./wheelhouse/*.whl release: if: startsWith(github.ref, 'refs/tags/') @@ -70,7 +74,7 @@ jobs: - uses: actions/checkout@v4 - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment - name: Download All Artifacts uses: actions/download-artifact@v4 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 464ceda33..8d18b4c19 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -18,7 +18,7 @@ jobs: with: fetch-depth: 0 - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment - name: Run ATS and Tests uses: ./.github/actions/run_ats timeout-minutes: 15 @@ -49,7 +49,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment - name: Cache oss-repos uses: ./.github/actions/setup-oss-repos - name: Run ATS and Tests @@ -72,7 +72,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment - name: Cache oss-repos uses: ./.github/actions/setup-oss-repos @@ -136,7 +136,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup backend - uses: ./.github/actions/setup-backend + uses: ./.github/actions/setup-environment - name: Test with pytest timeout-minutes: 5 env: