Skip to content

Commit

Permalink
Update CI for xp cache dir detection
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Jun 25, 2024
1 parent 84891bd commit c7e2792
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ jobs:

- name: Get model cache directory
id: model-cache-dir
run: echo "dir=$(python -c "from platformdirs import PlatformDirs; print(PlatformDirs(appname='iscc-sct', appauthor='iscc').user_data_dir)")" >> $GITHUB_OUTPUT
shell: python
run: |
from platformdirs import PlatformDirs
import os
cache_dir = PlatformDirs(appname='iscc-sct', appauthor='iscc').user_data_dir
print(f"dir={cache_dir}")
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
print(f"dir={cache_dir}", file=fh)
- name: Cache ONNX model
uses: actions/cache@v4
Expand Down

0 comments on commit c7e2792

Please sign in to comment.