fix(ci): Add a cache prestep

This commit is contained in:
Timothy Stewart
2024-01-21 13:15:43 -06:00
parent a2d4e91aa5
commit 3bb8984d7c

View File

@@ -42,7 +42,6 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip' # caching pip dependencies
- run: echo '${{ steps.pip-cache.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
- name: Install dependencies
run: |
@@ -54,6 +53,14 @@ jobs:
python3 -m pip install -r requirements.txt
echo "::endgroup::"
- name: Cache Ansible
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with:
path: ~/.ansible/collections
key: ${{ runner.os }}-ansible-${{ hashFiles('collections/requirements.txt') }}
restore-keys: |
${{ runner.os }}-ansible-
- name: Test with molecule
run: molecule test --scenario-name ${{ matrix.scenario }}
timeout-minutes: 90