From 31e05f53eef4146102a509bafde47953013dce16 Mon Sep 17 00:00:00 2001 From: baztian Date: Tue, 23 Jun 2020 23:42:23 +0200 Subject: [PATCH] Add some caching --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 35fc50a..729d0a4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,6 +29,33 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + - uses: actions/cache@v1 + with: + path: .tox/shared/.m2 + key: ${{ matrix.plattform }}-${{ matrix.python-version }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ matrix.plattform }}-${{ matrix.python-version }}-maven- + + - uses: actions/cache@v1 + with: + path: .tox/shared/.m2 + key: ${{ matrix.plattform }}-${{ matrix.python-version }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ matrix.plattform }}-${{ matrix.python-version }}-maven- + + - uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ matrix.plattform }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/*requirements.txt', 'tox.ini', 'setup.py') }} + restore-keys: | + ${{ matrix.plattform }}-${{ matrix.python-version }}-pip- + + - uses: actions/cache@v2 + with: + path: ~/jython + key: ${{ matrix.jython }}-jython + if: matrix.jython + - name: Consider Jython run: | ci/before_install_jython.sh