From 41f1446006f50154cc7f5e3432b2427bfe3a625b Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 30 Oct 2024 17:26:42 +0100 Subject: [PATCH] Update CI. --- .github/workflows/build.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ed3987f..d15140ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,11 +8,11 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04, macos-11, windows-2019] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Build & install @@ -68,13 +68,23 @@ jobs: fi ) && PYTHONFAULTHANDLER=1 PYTHONIOENCODING=utf-8 ./run-examples.py - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: wheels - path: dist/ + name: wheel-${{ matrix.os }}-${{ matrix.python-version }} + path: dist/*.whl if: ${{ always() }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: result_images-${{ matrix.os }}-py${{ matrix.python-version }} path: result_images/ if: ${{ failure() }} + + merge-wheels: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/upload-artifact/merge@v4 + with: + name: wheels + pattern: wheel-* + delete-merged: true