Skip to content

Commit d4861e8

Browse files
committed
Build and upload pip package for pull requests for inspection
1 parent 63408b1 commit d4861e8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/run-tox.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,27 @@ jobs:
9090
- name: Tox Test - Examples
9191
run: |
9292
tox --skip-missing-interpreters false -e ${{ matrix.test_env }}-examples
93+
94+
pip-package:
95+
# Build and upload pip packages as artifacts so we can inspect them and
96+
# ensure they are correct for actual release
97+
runs-on: ubuntu-latest
98+
99+
steps:
100+
- name: Checkout repository
101+
uses: actions/checkout@v4
102+
- name: Set up Python
103+
uses: actions/setup-python@v4
104+
with:
105+
python-version: "3.10.x"
106+
- name: Install build dependency
107+
run: python3 -m pip install --upgrade build
108+
- name: Build a binary wheel and a source tarball
109+
run: python3 -m build
110+
- name: Upload packages.
111+
uses: actions/upload-artifact@v4
112+
with:
113+
name: pip-packages
114+
path: |
115+
dist/Qt[._]py-*.whl
116+
dist/Qt[._]py-*.tar.gz

0 commit comments

Comments
 (0)