diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 461035a..a7ba31b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,12 +39,17 @@ jobs: - uses: actions/setup-python@v3 with: python-version: "3" + - uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: python-pip - name: install dependencies shell: bash run: | set -e sudo apt-get update sudo apt-get install -y unzip cloud-utils qemu-system-{x86,ppc} + python3 -m pip install -U wheel python3 -m pip install -U ansible # Install packer.io curl -O https://releases.hashicorp.com/packer/${{ matrix.packer_version }}/packer_${{ matrix.packer_version }}_linux_amd64.zip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ef0bbd..fc8591b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,6 +42,10 @@ jobs: submodules: true - name: Set up Python uses: actions/setup-python@v2 + - uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: python-pip - name: Install dependencies run: | set -ex @@ -75,6 +79,10 @@ jobs: submodules: true - name: Install Python uses: actions/setup-python@v2 + - uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: python-pip - name: Install dependencies run: |- set -ex @@ -98,6 +106,10 @@ jobs: submodules: true - name: Install Python uses: actions/setup-python@v2 + - uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: python-pip - name: Install dependencies run: python -m pip install --upgrade tox - name: Run scenario