Skip to content

Commit 478e9a4

Browse files
committed
use gha cache for bionemo test data
Signed-off-by: Peter St. John <pstjohn@nvidia.com>
1 parent a29272f commit 478e9a4

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/unit-tests-framework.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ jobs:
167167
- name: Checkout repository
168168
uses: actions/checkout@v4
169169

170+
- name: Cache bionemo test data
171+
uses: actions/cache@v4
172+
with:
173+
path: /root/.cache/bionemo
174+
key: ${{ runner.os }}-bionemo-test-data-${{ github.sha }}
175+
restore-keys: |
176+
${{ runner.os }}-bionemo-test-data
177+
170178
- name: Run tests
171179
# Tests in this stage generate code coverage metrics for the repository
172180
# Coverage data is uploaded to Codecov in subsequent stages

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ ENV UV_LINK_MODE=copy \
190190
UV_COMPILE_BYTECODE=1 \
191191
UV_PYTHON_DOWNLOADS=never \
192192
UV_SYSTEM_PYTHON=true \
193-
UV_BREAK_SYSTEM_PACKAGES=1
193+
UV_BREAK_SYSTEM_PACKAGES=1 \
194+
PIP_NO_CACHE_DIR=1
194195

195196
# Install the bionemo-geometric requirements ahead of copying over the rest of the repo, so that we can cache their
196197
# installation. These involve building some torch extensions, so they can take a while to install.

0 commit comments

Comments
 (0)