Skip to content

Commit 5e8a210

Browse files
committed
test: set PYTHONPATH when running the compliance tool
By setting the PYTHONPATH when running the compliance tool in the tests, it is no longer required to manually set PYTHONPATH when running the tests with `python -m unittest` or `coverage`. Thus don't set PYTHONPATH in the CI script anymore. Furthermore abstract running the compliance tool with a function, eliminating a lot of duplicate code.
1 parent b06db7d commit 5e8a210

File tree

2 files changed

+53
-108
lines changed

2 files changed

+53
-108
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ jobs:
3838
run: |
3939
python test/_helper/setup_testdb.py -u "admin" -p "$COUCHDB_ADMIN_PASSWORD"
4040
- name: Test with coverage + unittest
41-
# Add source directory to PYTHONPATH to allow testing our CLI scripts, which import our modules
4241
run: |
43-
export PYTHONPATH=".:$PYTHONPATH"
4442
coverage run --source=basyx -m unittest
4543
- name: Report test coverage
4644
if: ${{ always() }}

0 commit comments

Comments
 (0)