File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed
Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 3333 runs-on : ${{ matrix.os }}
3434 timeout-minutes : 20
3535 steps :
36- - uses : actions/checkout@v2
36+ - uses : actions/checkout@v4
3737 - name : Copy requirements files
3838 shell : bash
3939 run : |
Original file line number Diff line number Diff line change 3333 sudo apt update
3434 sudo apt-get install -y libopenslide-dev openslide-tools libopenjp2-7 libopenjp2-tools
3535 python -m pip install --upgrade pip
36+ pip install torch==2.1.0 torchvision==0.15.0 --index-url https://download.pytorch.org/whl/cpu
3637 pip install -r requirements/requirements_dev.txt
3738
3839 - name : Perform type checking
Original file line number Diff line number Diff line change 5555 - name : OpenJPEG Version Information
5656 continue-on-error : true # This -h option has exit code 1 for some reason
5757 run : opj_dump -h
58+ - name : Install CPU-only PyTorch
59+ run : python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
5860 - name : pip Install From GitHub Repo on Linux and macOS
5961 if : runner.os != 'Windows'
6062 run : python -m pip install git+https://github.com/TissueImageAnalytics/tiatoolbox@${GITHUB_SHA}
Original file line number Diff line number Diff line change 3131 sudo apt-get install -y libopenjp2-7 libopenjp2-tools
3232 python -m pip install --upgrade pip
3333 python -m pip install ruff==0.14.7 pytest pytest-cov pytest-runner
34+ pip install torch==2.1.0 torchvision==0.15.0 --index-url https://download.pytorch.org/whl/cpu
3435 pip install -r requirements/requirements.txt
3536 - name : Cache tiatoolbox static assets
3637 uses : actions/cache@v4
@@ -107,6 +108,7 @@ jobs:
107108 run : |
108109 sudo apt-get install -y libopenslide-dev libopenjp2-7
109110 python -m pip install --upgrade pip
111+ pip install torch==2.1.0 torchvision==0.15.0 --index-url https://download.pytorch.org/whl/cpu
110112 pip install -r requirements/requirements.txt
111113 pip install build
112114 - name : Build package
You can’t perform that action at this time.
0 commit comments