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 dab0991 [SYSTEMDS-301] Improved github workflows (cache dependencies) dab0991 is described below commit dab09916436c9518afa3cf8da572db2bde32207a Author: Sebastian <baunsga...@tugraz.at> AuthorDate: Sat Mar 28 20:22:12 2020 +0100 [SYSTEMDS-301] Improved github workflows (cache dependencies) Closes #869. --- .github/workflows/applicationTests.yml | 3 ++- .github/workflows/build.yml | 16 ++++++++++++---- .github/workflows/componentTests.yml | 16 ++++++++++++---- .github/workflows/documentation.yml | 28 +++++++++++++++++++++++----- .github/workflows/functionsTests.yml | 3 ++- .github/workflows/python.yml | 20 ++++++++++++++++++-- 6 files changed, 69 insertions(+), 17 deletions(-) diff --git a/.github/workflows/applicationTests.yml b/.github/workflows/applicationTests.yml index e4efc2c..652b31a 100644 --- a/.github/workflows/applicationTests.yml +++ b/.github/workflows/applicationTests.yml @@ -39,7 +39,8 @@ jobs: os: [ubuntu-latest] name: Ap Test ${{ matrix.tests }} steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v2 - name: Run all tests starting with "${{ matrix.tests }}" uses: ./.github/action/ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c449040..0ae7f82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,14 +30,22 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macOS-latest, windows-latest] - steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Setup Java 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - - name: Build with Maven + - name: Cache Maven Dependencies + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Build run: mvn package diff --git a/.github/workflows/componentTests.yml b/.github/workflows/componentTests.yml index 838b662..0cc934c 100644 --- a/.github/workflows/componentTests.yml +++ b/.github/workflows/componentTests.yml @@ -30,15 +30,23 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - java: [ 1.8 ] name: Component Tests ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v2 - - name: Setup Java + - name: Setup Java 1.8 uses: actions/setup-java@v1 with: - java-version: ${{ matrix.java }} + java-version: 1.8 + + - name: Cache Maven Dependencies + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Maven clean compile & test-compile run: mvn clean compile test-compile diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 96e4881..201210f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -31,13 +31,22 @@ jobs: runs-on: ubuntu-latest name: Documentation Java steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v2 - - name: Setup Java + - name: Setup Java 1.8 uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: 1.8 + - name: Cache Maven Dependencies + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Make Documentation SystemDS Java run: mvn -P distribution package @@ -51,14 +60,23 @@ jobs: runs-on: ubuntu-latest name: Documentation Python steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v2 - name: Setup Python uses: actions/setup-python@v1 with: python-version: 3.7 architecture: 'x64' - + + - name: Cache Pip Dependencies + uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-docs-${{ hashFiles('src/main/python/docs/requires-docs.txt') }} + restore-keys: | + ${{ runner.os }}-pip-docs- + - name: Install Dependencies run: | cd src/main/python/docs diff --git a/.github/workflows/functionsTests.yml b/.github/workflows/functionsTests.yml index 0563dd1a..b983018 100644 --- a/.github/workflows/functionsTests.yml +++ b/.github/workflows/functionsTests.yml @@ -77,7 +77,8 @@ jobs: os: [ubuntu-latest] name: Func Test ${{ matrix.tests }} steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v2 - name: Run all tests starting with "${{ matrix.tests }}" uses: ./.github/action/ diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 9c3ed16..3c6a952 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -40,13 +40,22 @@ jobs: java: [ 1.8 ] name: Python Test steps: - - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v2 - name: Setup Java uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} + - name: Cache Maven Dependencies + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Maven clean & package run: mvn clean package @@ -56,11 +65,18 @@ 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 pip Dependencies run: pip install numpy py4j wheel - name: Build Python Package - # TODO: Find out how to make if statement correctly: suggestion but not working: if: ${{ matrix.tests }} == P run: | cd src/main/python python create_python_dist.py