From 37f0cb11d2d3db58ecaa51c1e250ac043b33b6d6 Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Tue, 1 Nov 2022 20:35:46 -0500 Subject: [PATCH] fix(ci): pin + cache --- .github/workflows/test.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 285eab8c..f8072d23 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,16 +34,8 @@ jobs: * fdad:bad:ba55::/64 EOF - - name: Cache pip - uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('./requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Cache Vagrant boxes - uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # 3.0.11 + uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # 3.0.8 with: path: | ~/.vagrant.d/boxes @@ -58,19 +50,14 @@ jobs: run: ./.github/download-boxes.sh - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # 4.3.0 + uses: actions/setup-python@v2 with: python-version: ${{ env.PYTHON_VERSION }} - cache: 'pip' # caching pip dependencies - run: | - echo "::group::Upgrade pip" - python3 -m pip install --upgrade pip - echo "::endgroup::" - - echo "::group::Install Python requirements from requirements.txt" + - name: Install dependencies + run: >- + python3 -m pip install --upgrade pip && python3 -m pip install -r requirements.txt - echo "::endgroup::" - name: Test with molecule run: molecule test --scenario-name ${{ matrix.scenario }} @@ -83,7 +70,7 @@ jobs: - name: Upload log files if: always() # do this even if a step before has failed - uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # 3.1.1 + uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # 3.1.0 with: name: logs path: |