@@ -33,43 +33,31 @@ jobs:
3333 key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
3434
3535 - name : Install dependencies
36- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3736 run : poetry install --no-interaction --no-ansi
3837
39- - name : Cache Graphviz installation
40- id : cache-graphviz
38+ - name : Cache apt packages
39+ id : cache-apt
4140 uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
4241 with :
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
42+ path : /var/cache/apt/archives
43+ key : apt-${{ runner.os }}-graphviz-v1
44+ restore-keys : |
45+ apt-${{ runner.os }}-graphviz-
5546
5647 - name : Install Graphviz and Debug
5748 run : |
5849 # ---- DEBUG - REMOVE AFTER FIXING ----
5950 echo "=== CACHE STATUS ==="
60- echo "Cache hit: ${{ steps.cache-graphviz .outputs.cache-hit }}"
51+ echo "APT Cache hit: ${{ steps.cache-apt .outputs.cache-hit }}"
6152
6253 echo "\n=== BEFORE INSTALL ==="
63- ls -la /usr/bin/ | grep -E "(dot|graphviz)" || echo "No graphviz binaries found"
54+ which dot && echo "dot already exists" || echo "dot not found"
6455
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
56+ echo "\n=== INSTALLING GRAPHVIZ ==="
57+ sudo apt-get update
58+ sudo apt-get install -y graphviz
7059
7160 echo "\n=== AFTER INSTALL ==="
72- ls -la /usr/bin/ | grep -E "(dot|graphviz)" || echo "No graphviz binaries found"
7361 which dot && dot -V || echo "dot command not found"
7462
7563 echo "\n=== ENVIRONMENT DEBUG ==="
0 commit comments