Skip to content

Commit 5b13c20

Browse files
committed
ci: add pytest testpath config and comment about detail
1 parent 176c9f0 commit 5b13c20

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,13 @@ jobs:
160160
161161
- name: Run tests
162162
run: |
163+
# we have installed a pre-built wheel and configured code coverage to
164+
# inspect "jupyter_server_proxy", by re-locating to another directory,
165+
# there is no confusion about "jupyter_server_proxy" referring to our
166+
# installed package rather than the local directory
163167
mkdir build
164168
cd build
165-
pytest -vv ../tests -c ../pyproject.toml
169+
pytest -c ../pyproject.toml
166170
167171
- name: Upload test reports
168172
if: always()

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ src = "labextension/package.json"
182182

183183
[tool.pytest.ini_options]
184184
cache_dir = "build/.cache/pytest"
185+
testpaths = ["tests"]
185186
addopts = [
186187
"-vv",
187188
"--cov=jupyter_server_proxy",

0 commit comments

Comments
 (0)