Skip to content

Commit 23e1959

Browse files
committed
Fix windows testing
1 parent c54d1b4 commit 23e1959

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/scripts/rmiso.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import shutil
2+
from pathlib import Path
3+
4+
path = Path(__file__).parent.parent / "IsoSpecPy"
5+
print(f"Removing IsoSpecPy directory at: {path}")
6+
shutil.rmtree(path, ignore_errors=True)
7+
print("Done.")

.github/workflows/run_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
- name: Install package
3737
run: |
3838
python -m pip install .[testing]
39+
- name: Wipe code so it wont mess up import
40+
run: |
41+
python .github/scripts/rmiso.py
3942
- name: Test with pytest
4043
working-directory: ./tests/Python
4144
run: |

0 commit comments

Comments
 (0)