Cache pip modules
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user