Skip to content

Commit 556fada

Browse files
committed
try testpypi
1 parent d033252 commit 556fada

File tree

1 file changed

+45
-45
lines changed

1 file changed

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

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

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
@@ -49,10 +49,10 @@ jobs:
4949
- [ubuntu-24.04, musllinux_x86_64] # No OpenBlas, no test
5050
- [ubuntu-24.04, musllinux_i686]
5151
- [ubuntu-24.04-arm, musllinux_aarch64]
52-
- [macos-15-intel, macosx_x86_64]
53-
- [macos-14, macosx_arm64]
54-
- [windows-2022, win_amd64]
55-
- [windows-2022, win32]
52+
# - [macos-15-intel, macosx_x86_64]
53+
# - [macos-14, macosx_arm64]
54+
# - [windows-2022, win_amd64]
55+
# - [windows-2022, win32]
5656
python: ["cp38", "cp39","cp310", "cp311","cp312", "cp313"]
5757

5858
steps:
@@ -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

0 commit comments

Comments
 (0)