Skip to content

Commit a9ee5e3

Browse files
committed
Add script to run tests in venv.
1 parent d2ec4f6 commit a9ee5e3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
__pycache__
33
/.coverage
44
/build
5+
/venv

run_tests_in_venv.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env sh
2+
set -euo pipefail
3+
4+
rm -rf venv
5+
python -m venv venv
6+
source venv/bin/activate
7+
pip install . 'coverage[toml]'
8+
coverage run test_example_module.py
9+
coverage report --show-missing

0 commit comments

Comments
 (0)