diff --git a/.github/workflows/black-format.yml b/.github/workflows/black-format.yml index c8cf20421..b9fe86511 100644 --- a/.github/workflows/black-format.yml +++ b/.github/workflows/black-format.yml @@ -29,6 +29,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: "3.13" + cache: 'pip' + cache-dependency-path: 'requirements.txt' - name: Install dependencies run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0385c22ae..2868f49c2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,6 +69,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: ${{ matrix.python_version }} + cache: 'pip' + cache-dependency-path: 'requirements.txt' - if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-22.04-arm' run: sudo apt-get install -y libyaml-dev - name: Upgrade pip, setuptools diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2b157abe8..63c1bb2f8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,6 +46,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: "3.13" + cache: 'pip' + cache-dependency-path: 'requirements.txt' - name: Install dependencies run: | pip install -r requirements.txt @@ -74,6 +76,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: "3.13" + cache: 'pip' + cache-dependency-path: 'requirements.txt' - name: Install capa run: | pip install -r requirements.txt @@ -106,6 +110,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements.txt' - name: Install pyyaml if: matrix.os == 'ubuntu-22.04' run: sudo apt-get install -y libyaml-dev @@ -147,6 +153,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements.txt' - name: Install pyyaml if: ${{ env.BN_SERIAL != 0 }} run: sudo apt-get install -y libyaml-dev @@ -190,6 +198,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements.txt' - name: Set up Java ${{ matrix.java-version }} uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 with: @@ -240,6 +250,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'requirements.txt' - name: Setup uv if: ${{ env.IDA_LICENSE_ID != 0 }} uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0 diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 518230f2e..d515981ab 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -80,6 +80,8 @@ jobs: uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: '3.12' + cache: 'pip' + cache-dependency-path: './web/rules/requirements.txt' - uses: extractions/setup-just@v2 - name: Install pagefind uses: supplypike/setup-bin@v4