Skip to content

Commit b720226

Browse files
authored
PYTHON-5058 & PYTHON-5047 Improve testing of publish workflows (#267)
1 parent e733559 commit b720226

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/release-python.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- "**"
88
pull_request:
99
workflow_dispatch:
10+
schedule:
11+
- cron: '30 5 * * *'
1012

1113
concurrency:
1214
group: wheels-${{ github.ref }}
@@ -29,7 +31,7 @@ jobs:
2931
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
3032
buildplat:
3133
- [ubuntu-20.04, manylinux_x86_64]
32-
- [ubuntu-20.04, manylinux_aarch64]
34+
- [ubuntu-24.04-arm, manylinux_aarch64]
3335
- [macos-14, macosx_*]
3436
- [windows-2019, win_amd64]
3537
python: ["cp39", "cp310", "cp311", "cp312", "cp313"]
@@ -59,12 +61,6 @@ jobs:
5961
cache-dependency-path: 'bindings/python/pyproject.toml'
6062
allow-prereleases: true
6163

62-
- name: Set up QEMU
63-
if: runner.os == 'Linux'
64-
uses: docker/setup-qemu-action@v3
65-
with:
66-
platforms: all
67-
6864
- name: Install pkg-config on MacOS
6965
if: runner.os == 'macOS'
7066
run: brew install pkg-config
@@ -152,7 +148,7 @@ jobs:
152148
publish:
153149
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
154150
needs: [collect_dist]
155-
if: startsWith(github.ref, 'refs/tags/')
151+
if: ${{ github.event_name != 'pull_request'}}
156152
runs-on: ubuntu-latest
157153
environment: release
158154
permissions:
@@ -164,4 +160,10 @@ jobs:
164160
name: all-dist-${{ github.run_id }}
165161
path: dist/
166162
- name: Publish distribution 📦 to PyPI
163+
if: startsWith(github.ref, 'refs/tags/')
167164
uses: pypa/gh-action-pypi-publish@release/v1
165+
- name: Publish package distributions to TestPyPI
166+
uses: pypa/gh-action-pypi-publish@release/v1
167+
with:
168+
repository-url: https://test.pypi.org/legacy/
169+
skip-existing: true

0 commit comments

Comments
 (0)