Cache python dependencies for faster CI run times.
@@ -68,6 +68,14 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq gcc libvirt-dev
+ - name: Cache Python Dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements-tests.txt', '') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
- name: Install Python Dependencies
run: |
pip install "tox==3.20.1"
@@ -102,6 +110,14 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq gcc libvirt-dev
+ - name: Cache Python Dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements-tests.txt', 'integration/storage/requirements.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
- name: Install Python Dependencies
run: |
pip install "tox==3.20.1"
@@ -136,6 +152,14 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq graphviz gcc libvirt-dev
+ - name: Cache Python Dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements-tests.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
- name: Install Python Dependencies
run: |
pip install "tox==3.20.1"
@@ -170,6 +194,14 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq graphviz gcc libvirt-dev
+ - name: Cache Python Dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements-tests.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
- name: Install Python Dependencies
run: |
pip install "tox==3.20.1"
@@ -209,6 +241,14 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq graphviz gcc libvirt-dev
+ - name: Cache Python Dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements-tests.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
- name: Install Python Dependencies
run: |
pip install "tox==3.20.1"
