@@ -42,54 +42,29 @@ jobs:
4242 path : ~/graphviz-cache
4343 key : graphviz-installed-${{ runner.os }}-v3
4444
45- - name : Install Graphviz and Debug
45+ - name : Install Graphviz
4646 run : |
47- # ---- DEBUG - REMOVE AFTER FIXING ----
48- echo "=== CACHE STATUS ==="
49- echo "Graphviz Cache hit: ${{ steps.cache-graphviz.outputs.cache-hit }}"
50-
51- echo "\n=== BEFORE INSTALL ==="
52- which dot && echo "dot already exists" || echo "dot not found"
53-
47+ echo "Cache hit: ${{ steps.cache-graphviz.outputs.cache-hit }}"
5448 if [ "${{ steps.cache-graphviz.outputs.cache-hit }}" = "true" ]; then
55- echo "\n=== RESTORING CACHED GRAPHVIZ === "
56- sudo cp -r ~/graphviz-cache/bin/* /usr/bin/ 2>/dev/null || echo "No binaries to restore"
57- sudo cp -r ~/graphviz-cache/lib/* /usr/lib/ 2>/dev/null || echo "No libraries to restore"
58- sudo cp -r ~/graphviz-cache/share/* /usr/share/ 2>/dev/null || echo "No shared files to restore"
49+ echo "Restoring from cache "
50+ sudo cp ~/graphviz-cache/bin/* /usr/bin/ 2>/dev/null
51+ sudo cp ~/graphviz-cache/lib/* /usr/lib/x86_64-linux-gnu/ 2>/dev/null
52+ sudo cp -r ~/graphviz-cache/share/graphviz /usr/share/ 2>/dev/null
5953 sudo ldconfig
6054 else
61- echo "\n=== INSTALLING GRAPHVIZ === "
55+ echo "Installing fresh "
6256 sudo apt-get update
6357 sudo apt-get install -y graphviz
64-
65- echo "\n=== CACHING GRAPHVIZ ==="
6658 mkdir -p ~/graphviz-cache/{bin,lib,share}
67- cp /usr/bin/dot /usr/bin/ neato /usr/bin/ twopi /usr/bin/ circo /usr/bin/ fdp /usr/bin/ sfdp /usr/bin/ patchwork /usr/bin/ osage ~/graphviz-cache/bin/ 2>/dev/null || echo "Some binaries not found"
68- cp -r /usr/lib/x86_64-linux-gnu/*graphviz* ~/graphviz-cache/lib/ 2>/dev/null || echo "No graphviz libs found"
69- cp -r /usr/share/graphviz ~/graphviz-cache/share/ 2>/dev/null || echo "No graphviz share found"
59+ cp /usr/bin/{ dot, neato, twopi, circo, fdp, sfdp, patchwork, osage} ~/graphviz-cache/bin/ 2>/dev/null
60+ cp /usr/lib/x86_64-linux-gnu/lib{gvc,cgraph,cdt,pathplan,gvpr,lab-gamut}* ~/graphviz-cache/lib/ 2>/dev/null
61+ cp -r /usr/share/graphviz ~/graphviz-cache/share/ 2>/dev/null
7062 fi
63+ echo "Testing dot command:"
64+ which dot && dot -V || echo "dot failed"
7165
72- echo "\n=== AFTER INSTALL ==="
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
66+ - name : Run tests
67+ run : make test
9368
9469 - name : SonarQube Scan
9570 uses : SonarSource/sonarqube-scan-action@1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25 # v5.3.1
0 commit comments