From 78c9724720289393eca37f72bfbc1225bf1b0b4c Mon Sep 17 00:00:00 2001 From: Wassim Kabalan Date: Sun, 8 Dec 2024 22:32:42 +0100 Subject: [PATCH 1/4] expand test matrix --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c62aa33..b843bd5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.10.4] + python-version: ["3.10" , "3.11" , "3.12"] steps: - name: Checkout Source From 126a52c70329611d14c62ece601f505c1ea45f60 Mon Sep 17 00:00:00 2001 From: Wassim Kabalan Date: Mon, 9 Dec 2024 00:44:39 +0100 Subject: [PATCH 2/4] update release wf --- .github/workflows/github-deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-deploy.yml b/.github/workflows/github-deploy.yml index 85649b0..63f880b 100644 --- a/.github/workflows/github-deploy.yml +++ b/.github/workflows/github-deploy.yml @@ -12,15 +12,14 @@ jobs: matrix: # macos-13 is an intel runner, macos-14 is apple silicon os: [ubuntu-latest] + python-version: ["3.10" , "3.11" , "3.12"] steps: - uses: actions/checkout@v4 - name: Build wheels uses: pypa/cibuildwheel@v2.21.3 - env: - CIBW_BUILD: "cp310-* cp311-* cp312-*" - CIBW_BUILD_VERBOSITY: 2 + - uses: actions/upload-artifact@v4 with: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} From 850891365599841175ac3856271706e32319734f Mon Sep 17 00:00:00 2001 From: Wassim Kabalan Date: Mon, 9 Dec 2024 00:47:48 +0100 Subject: [PATCH 3/4] update release wf --- .github/workflows/github-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-deploy.yml b/.github/workflows/github-deploy.yml index 63f880b..873a295 100644 --- a/.github/workflows/github-deploy.yml +++ b/.github/workflows/github-deploy.yml @@ -12,7 +12,7 @@ jobs: matrix: # macos-13 is an intel runner, macos-14 is apple silicon os: [ubuntu-latest] - python-version: ["3.10" , "3.11" , "3.12"] + python-version: ["3.10" , "3.11" , "3.12"] steps: - uses: actions/checkout@v4 From 9445017103d1857613ef89f8331ec64e2c713b23 Mon Sep 17 00:00:00 2001 From: Wassim Kabalan Date: Mon, 9 Dec 2024 00:52:53 +0100 Subject: [PATCH 4/4] update wf --- .github/workflows/github-deploy.yml | 30 +++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/github-deploy.yml b/.github/workflows/github-deploy.yml index 873a295..877fbb1 100644 --- a/.github/workflows/github-deploy.yml +++ b/.github/workflows/github-deploy.yml @@ -6,23 +6,38 @@ on: jobs: build_wheels: - name: Build wheels on ${{ matrix.os }} + name: Build wheels on ${{ matrix.os }} for Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} strategy: matrix: - # macos-13 is an intel runner, macos-14 is apple silicon os: [ubuntu-latest] - python-version: ["3.10" , "3.11" , "3.12"] + python-version: ["3.10", "3.11", "3.12"] # Specify the Python versions here steps: - uses: actions/checkout@v4 - - name: Build wheels + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} # Use matrix to set Python version + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build cibuildwheel + + - name: Build wheels with cibuildwheel uses: pypa/cibuildwheel@v2.21.3 + with: + # Builds for specific Python versions specified in matrix + python-version: ${{ matrix.python-version }} + env: + CIBW_BUILD: "cp${{ matrix.python-version }}-*" + CIBW_SKIP: "pp*" # Skip non-CPython implementations - uses: actions/upload-artifact@v4 with: - name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} + name: cibw-wheels-${{ matrix.os }}-${{ matrix.python-version }} path: ./wheelhouse/*.whl build_sdist: @@ -46,16 +61,11 @@ jobs: permissions: id-token: write if: github.event_name == 'release' && github.event.action == 'published' - # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v4 with: - # unpacks all CIBW artifacts into dist/ pattern: cibw-* path: dist merge-multiple: true - uses: pypa/gh-action-pypi-publish@release/v1 - #with: - # repository-url: https://test.pypi.org/legacy/