Skip to content

Commit

Permalink
Add CI step to validate type publication
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJCLaw committed Dec 22, 2024
1 parent cc75636 commit ef0e6da
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,20 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable

check-types-published:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: |
pip install build
python -m build --sdist --wheel
temp=$(mktemp -d)
python -m venv $temp/venv
$temp/venv/pip install mypy ./dist/*whl
echo 'import pythonosc' > $temp/demo.py
$temp/venv/mypy $temp/demo.py

0 comments on commit ef0e6da

Please sign in to comment.