Skip to content

Commit

Permalink
Fix dataset downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
tachyonicClock committed Mar 21, 2024
1 parent e07dca8 commit 34bdf8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
pull_request:
branches: [ "main" ]

env:
CAPYMOA_DATASETS_DIR: ${{ vars.HOME }}/datasets

jobs:
tests:
timeout-minutes: 20
Expand All @@ -33,6 +36,12 @@ jobs:
run: |
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
python -m pip install ".[dev]"
- name: Cache Test Datasets
id: cache-test-datasets
uses: actions/cache@v4
with:
path: ${{ vars.CAPYMOA_DATASETS_DIR }}
key: "test-datasets"
- name: PyTest
run: invoke test.unit
- name: Notebooks
Expand Down
1 change: 1 addition & 0 deletions src/capymoa/stream/PytorchStream.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class PytorchStream(Stream):
... download=True,
... transform=ToTensor()
... )
...
>>> pytorch_stream = PytorchStream(dataset=pytorchDataset)
>>> pytorch_stream.get_schema()
@relation PytorchDataset
Expand Down

0 comments on commit 34bdf8e

Please sign in to comment.