diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml index 1eaea627b..01bb0ec2a 100644 --- a/.github/workflows/build-main.yml +++ b/.github/workflows/build-main.yml @@ -42,7 +42,13 @@ jobs: run: | python -m pip install --upgrade pip pip install .[test] + - uses: actions/cache@v2 + id: cache + with: + path: aicsimageio/tests/resources + key: ${{ hashFiles('scripts/TEST_RESOURCES_HASH.txt') }} - name: Download Test Resources + if: steps.cache.outputs.cache-hit != 'true' run: | python scripts/download_test_resources.py --debug - name: Run tests with Tox diff --git a/.github/workflows/test-and-lint.yml b/.github/workflows/test-and-lint.yml index aeea6befc..dd73b5fa4 100644 --- a/.github/workflows/test-and-lint.yml +++ b/.github/workflows/test-and-lint.yml @@ -28,7 +28,13 @@ jobs: run: | python -m pip install --upgrade pip pip install .[test] + - uses: actions/cache@v2 + id: cache + with: + path: aicsimageio/tests/resources + key: ${{ hashFiles('scripts/TEST_RESOURCES_HASH.txt') }} - name: Download Test Resources + if: steps.cache.outputs.cache-hit != 'true' run: | python scripts/download_test_resources.py --debug - name: Run tests with Tox