This is an automated email from the ASF dual-hosted git repository.
mboehm7 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemml.git
The following commit(s) were added to refs/heads/master by this push:
new 9bc5232 [MINOR] Cache Python pip and apt dependencies
9bc5232 is described below
commit 9bc52328f5535492d50cca811a67bd81829220ce
Author: Sebastian <[email protected]>
AuthorDate: Fri May 15 22:53:58 2020 +0200
[MINOR] Cache Python pip and apt dependencies
Closes #913.
---
.github/workflows/python.yml | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 156d843..c0002b4 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -53,9 +53,19 @@ jobs:
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
-
+
+ - name: Cache Pip Dependencies
+ uses: actions/cache@v1
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{
hashFiles('src/main/python/setup.py') }}
+
+ - name: Cache Deb Dependencies
+ uses: actions/cache@v1
+ with:
+ path: /var/cache/apt/archives
+ key: ${{ runner.os }}-${{ hashFiles('.github/workflows/python.yml') }}
+
- name: Maven clean & package
run: mvn clean package -P distribution
@@ -65,15 +75,7 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- - name: Cache Pip Dependencies
- uses: actions/cache@v1
- with:
- path: ~/.cache/pip
- key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{
hashFiles('src/main/python/setup.py') }}
- restore-keys: |
- ${{ runner.os }}-pip-${{ matrix.python-version }}-
-
- - name: Install protobuf
+ - name: Install Protobuf
run: sudo apt-get install protobuf-compiler libprotoc-dev
- name: Install pip Dependencies