Skip to content

Commit 1702b4d

Browse files
committed
Add type checking and running of the tests to CI
1 parent a2396bd commit 1702b4d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ jobs:
2828
- name: Show built files
2929
run: |
3030
ls -l dist/*
31+
- name: Type Checking
32+
run: |
33+
python -m mypy
34+
- name: Tests
35+
run: |
36+
for wheel in $(find dist -name "*manylinux*_x86_64.whl"); do
37+
echo "Testing installation with wheel: ${wheel}"
38+
pip install ${wheel}
39+
python -m pytest
40+
done
3141
- uses: actions/upload-artifact@v3
3242
with:
3343
name: nodejs-pip-wheels

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ nodejs-cmd/*.egg-info
55
.DS_Store
66
env*/
77
__pycache__/
8-
*.py[cod]
8+
*.py[cod]
9+
venv
10+
node_modules
11+
package-lock.json
12+
package.json

0 commit comments

Comments
 (0)