From ff20fe427cac3f24d0861e1a38ce0085bec0b22c Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 1 Mar 2024 10:33:07 +0000 Subject: [PATCH 1/2] ci: update workflows --- .github/workflows/test.yml | 14 +++++++++++++- .github/workflows/wheel.yml | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4eb8849d..498a1447 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.py }} allow-prereleases: true @@ -42,3 +42,15 @@ jobs: shell: bash run: | MSGPACK_PUREPYTHON=1 pytest -v test + + - name: build packages + shell: bash + run: | + pip install build + python -m build + + - name: upload packages + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 4a8847d0..d1e889b8 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -36,7 +36,7 @@ jobs: make cython - name: Build - uses: pypa/cibuildwheel@v2.15.0 + uses: pypa/cibuildwheel@v2.16.5 env: CIBW_TEST_REQUIRES: "pytest" CIBW_TEST_COMMAND: "pytest {package}/test" @@ -52,7 +52,7 @@ jobs: python -m build -w -o wheelhouse - name: Upload Wheels to artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Wheels path: wheelhouse From 9a2776655870678347e58a9c4816ce452265d27c Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 1 Mar 2024 10:37:43 +0000 Subject: [PATCH 2/2] fix artifact name --- .github/workflows/test.yml | 2 +- .github/workflows/wheel.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 498a1447..1faeb0ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,5 +52,5 @@ jobs: - name: upload packages uses: actions/upload-artifact@v4 with: - name: dist + name: dist-${{ matrix.os }}-${{ matrix.py }} path: dist diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index d1e889b8..e91325be 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -54,5 +54,5 @@ jobs: - name: Upload Wheels to artifact uses: actions/upload-artifact@v4 with: - name: Wheels + name: wheels-${{ matrix.os }} path: wheelhouse