Skip to content

Commit 028f4b2

Browse files
committed
debug(ci): add verification steps to diagnose circular import issue
- Clean Python bytecode cache before installation - Add debug step to verify base.py exists and runtime.py has correct import - Display git commit SHA being tested
1 parent 4fb1630 commit 028f4b2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎.github/workflows/copilot-setup-steps.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
- name: Checkout TNFR repository
3030
uses: actions/checkout@v5
3131

32+
- name: Clean Python bytecode cache
33+
run: |
34+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
35+
find . -type f -name "*.pyc" -delete 2>/dev/null || true
36+
3237
- name: Set up Python
3338
uses: actions/setup-python@v6
3439
with:
@@ -48,6 +53,15 @@ jobs:
4853
# - NumPy for structural computations
4954
python -m pip install -e .[test,numpy,yaml,orjson]
5055
56+
- name: Debug - Verify base.py exists
57+
run: |
58+
echo "Checking for base.py..."
59+
ls -la src/tnfr/validation/base.py
60+
echo "Checking runtime.py import line..."
61+
grep -n "from.*import.*ValidationOutcome" src/tnfr/validation/runtime.py
62+
echo "Git commit SHA:"
63+
git rev-parse HEAD
64+
5165
- name: Verify TNFR installation
5266
run: |
5367
# Verify the TNFR package is properly installed from repo (not PyPI)

0 commit comments

Comments
 (0)