Skip to content

Commit 86e92cb

Browse files
committed
BLD: trying to fix deployment for Linux
1 parent dc86e62 commit 86e92cb

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/pythonpublish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
deploy:
1010
strategy:
1111
matrix:
12-
runs-on: [ubuntu-latest, windows-latest, macos-latest]
12+
runs-on: [windows-latest, ubuntu-latest, macos-latest]
1313
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1414
runs-on: ${{ matrix.runs-on }}
1515
steps:
@@ -19,13 +19,13 @@ jobs:
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
22-
if: matrix.runs-on == 'windows-latest' || (matrix.runs-on == 'ubuntu-latest') || (matrix.runs-on == 'macos-latest')
22+
if: matrix.runs-on == 'windows-latest' || (matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.13') || (matrix.runs-on == 'macos-latest')
2323
run: |
2424
python3 -m pip install --upgrade pip
2525
python3 -m pip install --upgrade setuptools wheel twine
2626
python3 -m pip install -r ci_requirements.txt
2727
- name: Upload source code
28-
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.12'
28+
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.13'
2929
env:
3030
TWINE_USERNAME: __token__
3131
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
@@ -44,15 +44,17 @@ jobs:
4444
run: |
4545
python3 -m twine upload dist/*.whl
4646
- name: Build Linux Python wheels, install cibuildwheel
47-
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.12'
47+
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.13'
4848
run: |
49-
python -m pip install cibuildwheel==2.16.5
49+
python3 -m pip install cibuildwheel==2.17.0
5050
- name: Build Linux Python wheels
51-
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.12'
51+
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.13'
52+
env:
53+
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*
5254
run: |
53-
python -m cibuildwheel --output-dir dist
55+
python3 -m cibuildwheel --output-dir dist
5456
- name: Publish Linux Python wheels
55-
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.12'
57+
if: matrix.runs-on == 'ubuntu-latest' && matrix.python-version == '3.13'
5658
env:
5759
TWINE_USERNAME: __token__
5860
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)