Skip to content

Commit 21e23e7

Browse files
authored
[CI] Bump actions to v4
1 parent ccac2c0 commit 21e23e7

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/build_wheels.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
os: [ubuntu-latest, macos-latest, windows-latest]
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626

2727
- name: Build wheels
2828
uses: pypa/[email protected]
@@ -31,7 +31,7 @@ jobs:
3131
# CIBW_SOME_OPTION: value
3232
env:
3333
# List of platforms to build on
34-
CIBW_BUILD: cp3{8,9,10,11}-manylinux_x86_64 cp3{8,9,10,11}-macosx_x86_64 cp3{8,9,10,11}-macosx_arm64 cp3{8,9,10,11}-win_amd64
34+
CIBW_BUILD: cp3{8,9,10,11,12}-manylinux_x86_64 cp3{8,9,10,11,12}-macosx_x86_64 cp3{8,9,10,11,12}-macosx_arm64 cp3{8,9,10,11,12}-win_amd64
3535

3636
# Install Eigen and pybind11 on manylinux images (no brew, need Eigen >= 3.4)
3737
CIBW_BEFORE_ALL_LINUX: >
@@ -62,21 +62,23 @@ jobs:
6262
CIBW_TEST_REQUIRES: numpy
6363
CIBW_TEST_COMMAND: python {project}/tests/test_multistart.py
6464

65-
- uses: actions/upload-artifact@v3
65+
- uses: actions/upload-artifact@v4
6666
with:
67+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
6768
path: ./wheelhouse/*.whl
6869

6970
build_sdist:
7071
name: Build source distribution
7172
runs-on: ubuntu-latest
7273
steps:
73-
- uses: actions/checkout@v3
74+
- uses: actions/checkout@v4
7475

7576
- name: Build sdist
7677
run: pipx run build --sdist
7778

78-
- uses: actions/upload-artifact@v3
79+
- uses: actions/upload-artifact@v4
7980
with:
81+
name: cibw-sdist
8082
path: dist/*.tar.gz
8183

8284
upload_pypi:
@@ -89,8 +91,10 @@ jobs:
8991
steps:
9092
- uses: actions/download-artifact@v4
9193
with:
92-
name: artifact
94+
# unpacks all CIBW artifacts into dist/
95+
pattern: cibw-*
9396
path: dist
97+
merge-multiple: true
9498

9599
- uses: pypa/[email protected]
96100
with:

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ["3.8","3.9","3.10","3.11"]
16+
python-version: ["3.8","3.9","3.10","3.11","3.12"]
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies

0 commit comments

Comments
 (0)