Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
env:
TORCH_HOME: ${{ github.workspace }}/.torch # cache root for hub/checkpoints
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -110,15 +112,6 @@ jobs:
requests \
pandas \
unittest-parallel \
torchvision \
transformers \
opencv-python \
torch \
librosa \
h5py \
gensim \
opt-einsum \
nltk

- name: Build Python Package
run: |
Expand Down Expand Up @@ -150,9 +143,29 @@ jobs:
cd src/main/python
./tests/federated/runFedTest.sh

- name: Cache Torch Hub
if: ${{ matrix.test_mode == 'scuro' }}
id: torch-cache
uses: actions/cache@v4
with:
path: .torch
key: ${{ runner.os }}-torch-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-torch-

- name: Run Scuro Python Tests
if: ${{ matrix.test_mode == 'scuro' }}
run: |
pip install \
torchvision \
transformers \
opencv-python \
torch \
librosa \
h5py \
gensim \
opt-einsum \
nltk
cd src/main/python
python -m unittest discover -s tests/scuro -p 'test_*.py'

Expand Down
1 change: 0 additions & 1 deletion src/main/python/systemds/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from importlib.util import find_spec
from itertools import chain
from typing import Dict, Iterable
import torch
from systemds.utils.consts import MODULE_NAME


Expand Down
Loading