]> xenbits.xensource.com Git - ovmf.git/commitdiff
.github/workflows/codeql-analysis.yml: Add PIP caching
authorMichael Kubacki <michael.kubacki@microsoft.com>
Thu, 30 Mar 2023 20:44:26 +0000 (13:44 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 2 Apr 2023 00:24:13 +0000 (00:24 +0000)
Adds caching of PIP dependencies. This reduces overall execution time
and decreases likelihood of a network error reaching out pypi to get
the dependencies.

Caching happens based on modules specified in pip-requirements.txt.

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Kubacki <mikuback@linux.microsoft.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
.github/workflows/codeql-analysis.yml

index 791f79d1f0143a443bb83a715c3e671842e2d599..33cc0bd6b46d63a49cc6bab75926bea253f602e4 100644 (file)
@@ -66,6 +66,8 @@ jobs:
       uses: actions/setup-python@v4\r
       with:\r
         python-version: '3.10.6'\r
+        cache: 'pip'\r
+        cache-dependency-path: 'pip-requirements.txt'\r
 \r
     # Initializes the CodeQL tools for scanning.\r
     - name: Initialize CodeQL\r