@@ -14,15 +14,15 @@ jobs:
1414 runs-on : ${{ matrix.os }}
1515 strategy :
1616 matrix :
17- os : [ ubuntu-20 .04 ]
17+ os : [ ubuntu-22 .04 ]
1818 python : ['3.10']
1919 manylinux_image : [ manylinux2014, manylinux_2_28 ]
2020 # Disable for platforms where pure Python wheels would be generated
21- cibw_skip : [ "pp38-* pp39-* pp310-* pp311-*" ]
21+ cibw_skip : [ "pp38-* pp39-* pp310-* pp311-* pp312-* pp313-* " ]
2222 steps :
23- - uses : actions/checkout@v3
23+ - uses : actions/checkout@v4
2424
25- - uses : actions/setup-python@v4
25+ - uses : actions/setup-python@v5
2626 name : Install Python
2727 with :
2828 python-version : ${{ matrix.python }}
@@ -47,17 +47,18 @@ jobs:
4747 CIBW_ARCHS_LINUX : " auto aarch64"
4848 run : python -m cibuildwheel
4949
50- - uses : actions/upload-artifact@v3
50+ - uses : actions/upload-artifact@v4
5151 with :
52+ name : ${{ matrix.manylinux_image }}-${{ matrix.python }}-${{ matrix.os }}
5253 path : ./wheelhouse/*.whl
5354
5455 build_macos_wheels :
5556 name : Build macos wheels (cross-compiles arm64)
5657 runs-on : macos-13
5758 steps :
58- - uses : actions/checkout@v3
59+ - uses : actions/checkout@v4
5960
60- - uses : actions/setup-python@v4
61+ - uses : actions/setup-python@v5
6162 name : Install Python
6263 with :
6364 python-version : " 3.10"
@@ -72,23 +73,24 @@ jobs:
7273 CIBW_ARCHS_MACOS : " x86_64 arm64"
7374 run : python -m cibuildwheel
7475
75- - uses : actions/upload-artifact@v3
76+ - uses : actions/upload-artifact@v4
7677 with :
78+ name : macos
7779 path : ./wheelhouse/*.whl
7880
7981 build_pure_wheels :
8082 name : Build pure python wheels
81- runs-on : ubuntu-20 .04
83+ runs-on : ubuntu-24 .04
8284 strategy :
8385 matrix :
84- python : [3.9]
86+ python : [3.8, 3. 9]
8587 steps :
86- - uses : actions/checkout@v3
88+ - uses : actions/checkout@v4
8789
88- - uses : actions/setup-python@v4
90+ - uses : actions/setup-python@v5
8991 name : Install Python
9092 with :
91- python-version : ${{ matrix.python-version }}
93+ python-version : ${{ matrix.python }}
9294 - name : Install packaging tools
9395 run : |
9496 python -m pip install --upgrade pip setuptools importlib_metadata wheel
@@ -98,49 +100,52 @@ jobs:
98100 SCOUT_DISABLE_EXTENSIONS : " 1"
99101 run : python setup.py bdist_wheel
100102
101- - uses : actions/upload-artifact@v3
103+ - uses : actions/upload-artifact@v4
102104 with :
105+ name : pp${{ matrix.python }}
103106 path : dist/*.whl
104107
105108 build_sdist :
106109 name : Build source distribution
107- runs-on : ubuntu-20 .04
110+ runs-on : ubuntu-22 .04
108111 steps :
109- - uses : actions/checkout@v3
112+ - uses : actions/checkout@v4
110113
111- - uses : actions/setup-python@v3
114+ - uses : actions/setup-python@v5
112115 name : Install Python
113116 with :
114117 python-version : 3.9
115118
116119 - name : Build sdist
117120 run : python setup.py sdist
118121
119- - uses : actions/upload-artifact@v3
122+ - uses : actions/upload-artifact@v4
120123 with :
124+ name : sdist
121125 path : dist/*.tar.gz
122126
123127 upload_pypi :
124128 needs : [cibuildwheel_py38plus, build_pure_wheels, build_sdist, build_macos_wheels]
125- runs-on : ubuntu-20.04
129+ runs-on : ubuntu-24.04
130+ permissions :
131+ id-token : write
126132 steps :
127133 - name : Download distributions for publishing.
128- uses : actions/download-artifact@v3
134+ uses : actions/download-artifact@v4
129135 with :
130- name : artifact
131136 path : dist
137+ merge-multiple : true
132138
133139 - name : Publish distributions to Test PyPI
134140 uses : pypa/gh-action-pypi-publish@release/v1
135141 with :
136142 user : __token__
137143 password : ${{ secrets.TEST_TWINE_PASSWORD }}
138- repository_url : https://test.pypi.org/legacy/
144+ repository-url : https://test.pypi.org/legacy/
139145 skip_existing : true
140146
141147 - name : Publish distributions to PyPI
142148 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
143149 uses : pypa/gh-action-pypi-publish@release/v1
144150 with :
145151 user : __token__
146- password : ${{ secrets.TWINE_PASSWORD }}
0 commit comments