Cache pip modules
This commit is contained in:
@@ -39,12 +39,17 @@ jobs:
|
|||||||
- uses: actions/setup-python@v3
|
- uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: "3"
|
python-version: "3"
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: python-pip
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y unzip cloud-utils qemu-system-{x86,ppc}
|
sudo apt-get install -y unzip cloud-utils qemu-system-{x86,ppc}
|
||||||
|
python3 -m pip install -U wheel
|
||||||
python3 -m pip install -U ansible
|
python3 -m pip install -U ansible
|
||||||
# Install packer.io
|
# Install packer.io
|
||||||
curl -O https://releases.hashicorp.com/packer/${{ matrix.packer_version }}/packer_${{ matrix.packer_version }}_linux_amd64.zip
|
curl -O https://releases.hashicorp.com/packer/${{ matrix.packer_version }}/packer_${{ matrix.packer_version }}_linux_amd64.zip
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: python-pip
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
@@ -75,6 +79,10 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: python-pip
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |-
|
run: |-
|
||||||
set -ex
|
set -ex
|
||||||
@@ -98,6 +106,10 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: python-pip
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: python -m pip install --upgrade tox
|
run: python -m pip install --upgrade tox
|
||||||
- name: Run scenario
|
- name: Run scenario
|
||||||
|
|||||||
Reference in New Issue
Block a user