Skip to content

Commit 93f4c2b

Browse files
committed
publish test-pypi
1 parent 43add94 commit 93f4c2b

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [ubuntu-latest] #[ubuntu-latest, windows-latest, macos-13, macos-14]
19+
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
2020

2121
steps:
2222
- name: Checkout code
@@ -46,7 +46,7 @@ jobs:
4646
uses: pypa/cibuildwheel@v2.22.0
4747
env:
4848
# All cibuildwheel options are here (nothing "hidden" in pyproject.toml)
49-
CIBW_SKIP: "*-win32 *i686 pp3 *-manylinux_*"
49+
CIBW_SKIP: "*-win32 *i686 pp3"
5050
CIBW_BUILD_FRONTEND: build
5151
CIBW_BUILD_VERBOSITY: 1
5252
CIBW_TEST_REQUIRES: pytest
@@ -105,23 +105,23 @@ jobs:
105105

106106
# - uses: pypa/gh-action-pypi-publish@release/v1
107107

108-
# upload_test_pypi:
109-
# name: Publish to TestPyPI
110-
# needs: [build_wheels, build_sdist]
111-
# runs-on: ubuntu-latest
112-
# environment:
113-
# name: testpypi
114-
# url: https://test.pypi.org/p/odrpack
115-
# permissions:
116-
# id-token: write
117-
# if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, 'publish-testpypi') }}
118-
# steps:
119-
# - uses: actions/download-artifact@v4
120-
# with:
121-
# pattern: cibw-*
122-
# path: dist
123-
# merge-multiple: true
108+
upload_test_pypi:
109+
name: Publish to TestPyPI
110+
needs: [build_wheels, build_sdist]
111+
runs-on: ubuntu-latest
112+
environment:
113+
name: testpypi
114+
url: https://test.pypi.org/p/odrpack
115+
permissions:
116+
id-token: write
117+
if: ${{ github.event_name == 'workflow_dispatch' }}
118+
steps:
119+
- uses: actions/download-artifact@v4
120+
with:
121+
pattern: cibw-*
122+
path: dist
123+
merge-multiple: true
124124

125-
# - uses: pypa/gh-action-pypi-publish@release/v1
126-
# with:
127-
# repository-url: https://test.pypi.org/legacy/
125+
- uses: pypa/gh-action-pypi-publish@release/v1
126+
with:
127+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)