diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eb2a2e5..420b401 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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