Skip to content

Commit 5c3cd54

Browse files
committed
add wheel tests
1 parent df10418 commit 5c3cd54

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/release.yaml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
2-
---
31
name: Release
42

5-
on: [push]
3+
on:
4+
pull_request:
5+
push:
6+
# branches:
7+
# - main
8+
# release:
9+
# types:
10+
# - published
611

712
jobs:
813
release:
@@ -18,11 +23,20 @@ jobs:
1823
- uses: actions/setup-python@v5
1924
- name: Install dependencies
2025
run: |
21-
python -m pip install -U pip wheel setuptools setuptools-scm twine
22-
# python -m pip install -U pip wheel "setuptools<66.0.0" setuptools-scm twine
26+
python -m pip install -U pip wheel setuptools setuptools-scm twine build check-manifest
2327
- name: Build distributions
24-
run: python setup.py sdist bdist_wheel
28+
run: python -m build --sdist --wheel . --outdir dist
29+
30+
- name: CheckFiles
31+
run: |
32+
ls dist
33+
check-manifest --verbose
34+
35+
- name: Test wheels
36+
run: |
37+
cd dist && python -m pip install *.whl
38+
python -m twine check *
2539
2640
- name: Publish to PyPI
27-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
41+
if: success() && github.event_name == 'release'
2842
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)