Skip to content

Commit ef0e6da

Browse files
committed
Add CI step to validate type publication
1 parent cc75636 commit ef0e6da

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/python-test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,20 @@ jobs:
3838
steps:
3939
- uses: actions/checkout@v3
4040
- uses: psf/black@stable
41+
42+
check-types-published:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v3
46+
- uses: actions/setup-python@v5
47+
with:
48+
python-version: '3.12'
49+
- run: |
50+
pip install build
51+
python -m build --sdist --wheel
52+
53+
temp=$(mktemp -d)
54+
python -m venv $temp/venv
55+
$temp/venv/pip install mypy ./dist/*whl
56+
echo 'import pythonosc' > $temp/demo.py
57+
$temp/venv/mypy $temp/demo.py

0 commit comments

Comments
 (0)