Using the cache on both jobs.

This commit is contained in:
Nicolas Patry 2024-09-17 14:05:06 +02:00
parent 110b9a0b4c
commit 911f82a34b
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ jobs:
make install-integration-tests
- name: Run tests
run: |
export DOCKER_VOLUME=/mnt/cache
export DOCKER_VOLUME=/mnt/hf_cache
export DOCKER_IMAGE=${{ needs.build-and-push.outputs.docker_image }}
export DOCKER_DEVICES=${{ needs.build-and-push.outputs.docker_devices }}
export HF_TOKEN=${{ secrets.HF_TOKEN }}

View File

@ -37,7 +37,7 @@ jobs:
sudo find $NVIDIA . -name 'libcuda.so*' -exec ln -s {} /run/opengl-driver/lib/ \;
sudo find $NVIDIA . -name 'libnvidia-ml.so*' -exec ln -s {} /run/opengl-driver/lib/ \;
sudo chown -R runner /mnt/hf_cache/hub
nix develop .#test --command pytest -svvx integration-tests/ --release
nix develop .#test --command pytest -svv integration-tests/ --release
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_HOME: /mnt/hf_cache/