From 9439233f1d5a2bfe32f69de3c3e7556eb8e9c393 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Mon, 12 Oct 2020 18:35:46 +0200 Subject: [PATCH] cache M4 source tarball to avoid test failures because of download problems --- .github/workflows/unit_tests.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index f354aedc873..af55f605c9e 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -22,6 +22,13 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Cache source files in /tmp/sources + id: cache-sources + uses: actions/cache@v2 + with: + path: /tmp/sources + key: eb-sourcepath + - name: set up Python uses: actions/setup-python@v1 with: @@ -137,7 +144,8 @@ jobs: eb --search '^CVS-' | grep '/CVS-' # try installing M4 with system toolchain (requires ConfigureMake easyblock + easyconfig) - eb --prefix /tmp/$USER/$GITHUB_SHA M4-1.4.18.eb + # use /tmp/sources because that has cached downloads (see cache step above) + eb --prefix /tmp/$USER/$GITHUB_SHA --sourcepath /tmp/sources M4-1.4.18.eb test-sdist: runs-on: ubuntu-18.04