Skip to content

Commit 0aadef0

Browse files
authored
Add test for postinstall (#2392)
1 parent 034969e commit 0aadef0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,18 @@ jobs:
4545
# This needs to happen *after* installing pywin32 since
4646
# AutoDuck/py2d.py currently relies on runtime imports for introspection
4747
# This isn't included in the wheel (TODO: could we?)
48-
# and only servces as a PR test for the docs.yaml workflow
48+
# and only serves as a PR test for the docs.yaml workflow
4949
- name: Generate PyWin32.chm help file
5050
run: python AutoDuck/make.py
5151

52+
# Smokescreen test to validate it doesn't crash and dlls can be found
53+
- name: Run postinstall install/remove
54+
run: |
55+
$UserSite = "$(python -m site --user-site)"
56+
cd "$UserSite/.."
57+
python Scripts/pywin32_postinstall.py -install -destination "$UserSite"
58+
python Scripts/pywin32_postinstall.py -remove -destination "$UserSite"
59+
5260
- name: Run tests
5361
# Run the tests directly from the source dir so support files (eg, .wav files etc)
5462
# can be found - they aren't installed into the Python tree.

0 commit comments

Comments
 (0)