Skip to content

Commit 92599ed

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

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-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

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ classifiers = [
3131

3232
[project.optional-dependencies]
3333
dev = [
34+
"flake8",
35+
"flake8-bugbear",
3436
"Flake8-pyproject",
3537
"tox",
3638
]

0 commit comments

Comments
 (0)