diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36c571e..ed26314 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,18 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} + - name: Restore Ansible cache + uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 + with: + path: ~/.ansible/collections + key: ansible-${{ hashFiles('collections/requirements.yml') }} + + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # 2.3.3 + with: + python-version: ${{ env.PYTHON_VERSION }} + cache: 'pip' # caching pip dependencies + - name: Restore Homebrew cache uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 with: @@ -51,18 +63,6 @@ jobs: * fdad:bad:ba55::/64 EOF - - name: Restore Ansible cache - uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 - with: - path: ~/.ansible/collections - key: ansible-${{ hashFiles('collections/requirements.yml') }} - - - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # 2.3.3 - with: - python-version: ${{ env.PYTHON_VERSION }} - cache: 'pip' # caching pip dependencies - - name: Install dependencies run: | echo "::group::Upgrade pip"