Skip to content

Commit 5bb8857

Browse files
committed
reset build-wheels after successful testpypi OS checks locally
1 parent 1647116 commit 5bb8857

File tree

2 files changed

+47
-47
lines changed

2 files changed

+47
-47
lines changed
Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: build-wheels-push
22

33
# on: []
4-
on: push
5-
6-
# on:
7-
# release:
8-
# types:
9-
# - published
4+
# on: push
5+
6+
on:
7+
release:
8+
types:
9+
- published
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
@@ -43,12 +43,12 @@ jobs:
4343
# Github Actions doesn't support pairing matrix values together, let's improvise
4444
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
4545
buildplat:
46-
# - [ubuntu-24.04, manylinux_x86_64]
47-
# - [ubuntu-24.04, manylinux_i686]
48-
# - [ubuntu-24.04-arm, manylinux_aarch64]
49-
# - [ubuntu-24.04, musllinux_x86_64] # No OpenBlas, no test
50-
# - [ubuntu-24.04, musllinux_i686]
51-
# - [ubuntu-24.04-arm, musllinux_aarch64]
46+
- [ubuntu-24.04, manylinux_x86_64]
47+
- [ubuntu-24.04, manylinux_i686]
48+
- [ubuntu-24.04-arm, manylinux_aarch64]
49+
- [ubuntu-24.04, musllinux_x86_64] # No OpenBlas, no test
50+
- [ubuntu-24.04, musllinux_i686]
51+
- [ubuntu-24.04-arm, musllinux_aarch64]
5252
- [macos-15-intel, macosx_x86_64]
5353
- [macos-14, macosx_arm64]
5454
- [windows-2022, win_amd64]
@@ -68,51 +68,22 @@ jobs:
6868
name: cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[1] }}
6969
path: wheelhouse/*.whl
7070

71-
upload_testpypi:
72-
name: >-
73-
Publish highspy to TestPyPI
74-
runs-on: ubuntu-latest
75-
needs: [build_wheels, build_sdist]
76-
# needs: [build_sdist]
77-
78-
# upload to PyPI on every tag starting with 'v'
79-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
80-
81-
environment:
82-
name: testpypi
83-
url: https://test.pypi.org/p/highspy
84-
85-
permissions:
86-
id-token: write # IMPORTANT: mandatory for trusted publishing
87-
steps:
88-
- uses: actions/download-artifact@v4
89-
with:
90-
pattern: cibw-*
91-
path: dist
92-
merge-multiple: true
93-
94-
- name: Download all
95-
uses: pypa/gh-action-pypi-publish@release/v1
96-
with:
97-
repository-url: https://test.pypi.org/legacy/
98-
verbose: true
99-
100-
# upload_pypi:
71+
# upload_testpypi:
10172
# name: >-
102-
# Publish highspy to PyPI
73+
# Publish highspy to TestPyPI
10374
# runs-on: ubuntu-latest
10475
# needs: [build_wheels, build_sdist]
76+
# # needs: [build_sdist]
10577

10678
# # upload to PyPI on every tag starting with 'v'
10779
# # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
10880

10981
# environment:
110-
# name: pypi
111-
# url: https://pypi.org/p/highspy
82+
# name: testpypi
83+
# url: https://test.pypi.org/p/highspy
11284

11385
# permissions:
11486
# id-token: write # IMPORTANT: mandatory for trusted publishing
115-
11687
# steps:
11788
# - uses: actions/download-artifact@v4
11889
# with:
@@ -122,3 +93,32 @@ jobs:
12293

12394
# - name: Download all
12495
# uses: pypa/gh-action-pypi-publish@release/v1
96+
# with:
97+
# repository-url: https://test.pypi.org/legacy/
98+
# verbose: true
99+
100+
upload_pypi:
101+
name: >-
102+
Publish highspy to PyPI
103+
runs-on: ubuntu-latest
104+
needs: [build_wheels, build_sdist]
105+
106+
# upload to PyPI on every tag starting with 'v'
107+
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
108+
109+
environment:
110+
name: pypi
111+
url: https://pypi.org/p/highspy
112+
113+
permissions:
114+
id-token: write # IMPORTANT: mandatory for trusted publishing
115+
116+
steps:
117+
- uses: actions/download-artifact@v4
118+
with:
119+
pattern: cibw-*
120+
path: dist
121+
merge-multiple: true
122+
123+
- name: Download all
124+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/build-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: build-wheels
22

33
# on: [push]
4-
on: [push, pull_request]
4+
on: [pull_request]
55

66
concurrency:
77
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)