Skip to content

Commit 5a44885

Browse files
committed
--wip--
1 parent 1bb4804 commit 5a44885

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.coveragerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
[run]
2+
relative_files = true
3+
4+
[paths]
5+
source =
6+
injector/
7+
*/site-packages/injector/
8+
19
[report]
210
exclude_also =
311
if TYPE_CHECKING:

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,17 @@ jobs:
3434
pip install .
3535
- name: Run tests
3636
run: |
37-
python -m pytest -vv --cov=injector --cov-branch --cov-report html --cov-report term
37+
site_packages=$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')
38+
# --- TEMP DIAGNOSTICS ---
39+
echo "DIAG PWD=$PWD"
40+
echo "DIAG site_packages=$site_packages"
41+
printf 'import sys\ndef pytest_collection_finish(session):\n m = sys.modules.get("injector")\n print("DIAG executed-injector:", getattr(m, "__file__", m))\n print("DIAG sys.path head:", sys.path[:6])\n' > conftest.py
42+
# --- END TEMP ---
43+
pytest -vv --cov="$PWD/injector" --cov="$site_packages/injector" --cov-branch --cov-report html --cov-report term || true
44+
# --- TEMP DIAGNOSTICS ---
45+
python -c "import coverage; d=coverage.CoverageData(); d.read(); print('DIAG measured:', list(d.measured_files()))" || true
46+
rm -f conftest.py
47+
# --- END TEMP ---
3848
if which mypy; then mypy injector ; fi
3949
if which black; then black --check . ; fi
4050
check-manifest

0 commit comments

Comments
 (0)