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 ce29bb6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,26 @@ 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
source $temp/venv/bin/activate
pip install mypy ./dist/*whl
cd $temp
echo 'import pythonosc' > demo.py
mypy demo.py

0 comments on commit ce29bb6

Please sign in to comment.