|
31 | 31 | # You should go up in number, if you go down (or repeat a previous value) |
32 | 32 | # you might end up reusing a previous cache if it haven't been deleted already. |
33 | 33 | # It applies 7 days retention policy by default. |
34 | | - RESET_PIP_CACHE: 0 |
35 | 34 | RESET_EXAMPLES_CACHE: 0 |
36 | 35 | RESET_DOC_BUILD_CACHE: 0 |
37 | 36 | RESET_AUTOSUMMARY_CACHE: 0 |
@@ -100,21 +99,14 @@ jobs: |
100 | 99 | - name: "Setup Python" |
101 | 100 | uses: actions/setup-python@v4 |
102 | 101 | with: |
| 102 | + cache: 'pip' |
103 | 103 | python-version: ${{ env.MAIN_PYTHON_VERSION }} |
104 | 104 |
|
105 | 105 | - name: "Install OS packages" |
106 | 106 | run: | |
107 | 107 | sudo apt update |
108 | 108 | sudo apt install zip pandoc libgl1-mesa-glx xvfb texlive-latex-extra latexmk graphviz |
109 | 109 |
|
110 | | - - name: "Cache pip" |
111 | | - uses: actions/cache@v3 |
112 | | - with: |
113 | | - path: ~/.cache/pip |
114 | | - key: Python-v${{ env.RESET_PIP_CACHE }}-Linux-${{ env.MAIN_PYTHON_VERSION }}-${{ hashFiles('pyproject.toml') }} |
115 | | - restore-keys: | |
116 | | - Python-v${{ env.RESET_PIP_CACHE }}-Linux-${{ env.MAIN_PYTHON_VERSION }} |
117 | | -
|
118 | 110 | - name: "Test virtual framebuffer" |
119 | 111 | run: | |
120 | 112 | pip install -r .ci/requirements_test_xvfb.txt |
@@ -288,21 +280,15 @@ jobs: |
288 | 280 | - name: "Setup Python" |
289 | 281 | uses: actions/setup-python@v4 |
290 | 282 | with: |
| 283 | + cache: 'pip' |
| 284 | + cache-dependency-path: pyproject.toml |
291 | 285 | python-version: ${{ env.MAIN_PYTHON_VERSION }} |
292 | 286 |
|
293 | 287 | - name: "Install os packages" |
294 | 288 | run: | |
295 | 289 | sudo apt update |
296 | 290 | sudo apt install libgl1-mesa-glx xvfb |
297 | 291 |
|
298 | | - - name: "Cache pip" |
299 | | - uses: actions/cache@v3 |
300 | | - with: |
301 | | - path: ~/.cache/pip |
302 | | - key: Python-v${{ env.RESET_PIP_CACHE }}-Linux-${{ env.MAIN_PYTHON_VERSION }}-${{ hashFiles('pyproject.toml') }} |
303 | | - restore-keys: | |
304 | | - Python-v${{ env.RESET_PIP_CACHE }}-Linux-${{ env.MAIN_PYTHON_VERSION }} |
305 | | -
|
306 | 292 | - name: "Test virtual framebuffer" |
307 | 293 | run: | |
308 | 294 | pip install -r .ci/requirements_test_xvfb.txt |
|
0 commit comments