17
17
runs-on : ${{ matrix.os }}
18
18
strategy :
19
19
matrix :
20
- os : [ ubuntu-20.04, macOS-12 , windows-2019 ]
20
+ os : [ ubuntu-20.04, macOS-13 , windows-2019 ]
21
21
fail-fast : false
22
22
23
23
steps :
@@ -35,20 +35,16 @@ jobs:
35
35
- name : Set up Python
36
36
uses : actions/setup-python@v5
37
37
with :
38
- python-version : ' 3.10 '
38
+ python-version : ' 3.11 '
39
39
40
40
- name : Cythonize C-extensions
41
41
run : |
42
- python3 -m pip install --upgrade pip cibuildwheel==2.19.2
42
+ python3 -m pip install --upgrade pip cibuildwheel
43
43
python3 -m pip install -r requirements-dev.txt
44
44
cythonize polyagamma/*.pyx
45
45
46
46
- name : Build wheels
47
-
48
- with :
49
- package-dir : .
50
- output-dir : wheelhouse
51
- config-file : " pyproject.toml"
47
+ run : python -m cibuildwheel --output-dir wheelhouse --config-file pyproject.toml
52
48
53
49
- name : Build source distribution
54
50
if : ${{ matrix.os == 'ubuntu-20.04' }}
@@ -60,11 +56,12 @@ jobs:
60
56
mv dist/*.gz wheelhouse
61
57
62
58
- name : Store the wheelhouse directory
63
- uses : actions/upload-artifact@v3
59
+ uses : actions/upload-artifact@v4
64
60
with :
65
- name : wheels_and_sdist
61
+ name : wheels_and_sdist-${{ matrix.os }}
66
62
path : wheelhouse
67
63
if-no-files-found : error
64
+ overwrite : true
68
65
69
66
upload_pypi :
70
67
needs : [ build_wheels_and_sdist ]
@@ -76,12 +73,16 @@ jobs:
76
73
id-token : write
77
74
steps :
78
75
- name : Pull built wheels and sdist
79
- uses : actions/download-artifact@v3
76
+ uses : actions/download-artifact@v4
80
77
with :
81
- name : wheels_and_sdist
82
78
path : wheelhouse
79
+ pattern : wheels_and_sdist-*
80
+ merge-multiple : true
81
+
82
+ - name : Display structure of downloaded files
83
+ run : ls -R wheelhouse
83
84
84
85
- name : Publish to PyPI
85
- uses : pypa/gh-action-pypi-publish@v1.8.10
86
+ uses : pypa/gh-action-pypi-publish@release/v1
86
87
with :
87
88
packages_dir : wheelhouse
0 commit comments