Skip to content

Commit 5eb8d3c

Browse files
committed
ci: update cache Graphviz
1 parent 1e4a547 commit 5eb8d3c

File tree

1 file changed

+49
-8
lines changed

1 file changed

+49
-8
lines changed

.github/workflows/ci-test.yml

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,60 @@ jobs:
3636
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3737
run: poetry install --no-interaction --no-ansi
3838

39-
- name: Cache Graphviz
39+
- name: Cache Graphviz installation
4040
id: cache-graphviz
4141
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
4242
with:
43-
path: /usr/bin/dot
44-
key: graphviz-${{ runner.os }}
43+
path: |
44+
/usr/bin/dot
45+
/usr/bin/neato
46+
/usr/bin/twopi
47+
/usr/bin/circo
48+
/usr/bin/fdp
49+
/usr/bin/sfdp
50+
/usr/bin/patchwork
51+
/usr/bin/osage
52+
/usr/lib/x86_64-linux-gnu/graphviz
53+
/usr/share/graphviz
54+
key: graphviz-${{ runner.os }}-v2
4555

46-
- name: Install Graphviz
47-
if: steps.cache-graphviz.outputs.cache-hit != 'true'
48-
run: sudo apt-get update && sudo apt-get install -y graphviz
56+
- name: Install Graphviz and Debug
57+
run: |
58+
# ---- DEBUG - REMOVE AFTER FIXING ----
59+
echo "=== CACHE STATUS ==="
60+
echo "Cache hit: ${{ steps.cache-graphviz.outputs.cache-hit }}"
4961
50-
- name: Run tests
51-
run: make test
62+
echo "\n=== BEFORE INSTALL ==="
63+
ls -la /usr/bin/ | grep -E "(dot|graphviz)" || echo "No graphviz binaries found"
64+
65+
if [ "${{ steps.cache-graphviz.outputs.cache-hit }}" != "true" ]; then
66+
echo "\n=== INSTALLING GRAPHVIZ ==="
67+
sudo apt-get update
68+
sudo apt-get install -y graphviz
69+
fi
70+
71+
echo "\n=== AFTER INSTALL ==="
72+
ls -la /usr/bin/ | grep -E "(dot|graphviz)" || echo "No graphviz binaries found"
73+
which dot && dot -V || echo "dot command not found"
74+
75+
echo "\n=== ENVIRONMENT DEBUG ==="
76+
echo "Python: $(python --version)"
77+
echo "Poetry: $(poetry --version)"
78+
echo "Virtual env: $VIRTUAL_ENV"
79+
80+
echo "\n=== PROJECT STRUCTURE ==="
81+
ls -la | head -5
82+
ls -la leetcode/ | head -5 || echo "No leetcode directory"
83+
# ---- END DEBUG ----
84+
85+
- name: Run tests with debug
86+
run: |
87+
# ---- DEBUG - REMOVE AFTER FIXING ----
88+
echo "=== PRE-TEST DEBUG ==="
89+
make -n test
90+
echo "\n=== RUNNING TESTS ==="
91+
# ---- END DEBUG ----
92+
make test
5293
5394
- name: SonarQube Scan
5495
uses: SonarSource/sonarqube-scan-action@1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25 # v5.3.1

0 commit comments

Comments
 (0)