Skip to content

Commit f2a6c29

Browse files
authored
Merge pull request #863 from RasmusOrsoe/2nd_workflow_fix
2nd attempt at disk usage reduction for IceTray Runner
2 parents 84bfbf8 + 044218c commit f2a6c29

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/actions/install/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ runs:
5353
if [[ "${{ inputs.use_vm }}" == "true" ]]; then source ~/venv/bin/activate; fi
5454
pip install --no-cache-dir --upgrade 'pip>=20'
5555
pip install --no-cache-dir --upgrade 'setuptools>=68.2.2'
56+
rm -rf ~/.cache/pip
5657
5758
- name: Print pip and setuptools versions
5859
shell: bash
@@ -68,5 +69,5 @@ runs:
6869
echo "Installing graphnet with flags: ${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }}"
6970
echo "pip install ${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }} .[torch-${{ steps.flags.outputs.torch_flag }},${{ inputs.extras }}] -f https://data.pyg.org/whl/torch-${{ inputs.torch_version }}+${{ inputs.hardware }}.html"
7071
pip install --no-cache-dir${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }} .[torch-${{ steps.flags.outputs.torch_flag }},${{ inputs.extras }}] -f https://data.pyg.org/whl/torch-${{ inputs.torch_version }}+${{ inputs.hardware }}.html
71-
72+
rm -rf ~/.cache/pip
7273
pip install --no-cache-dir git+https://github.com/thoglu/jammy_flows.git

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ jobs:
8787
pip --version
8888
python --version
8989
pip show setuptools
90-
90+
rm -rf ~/.cache/pip
91+
9192
- name: Print available disk space before graphnet install
9293
run: |
9394
df -h
@@ -102,6 +103,13 @@ jobs:
102103
pip install --no-cache-dir --upgrade versioneer
103104
pip show setuptools
104105
pip show versioneer
106+
rm -rf ~/.cache/pip
107+
- name: Install PyTorch and dependencies
108+
shell: bash
109+
run: |
110+
source ~/venv/bin/activate
111+
pip3 install --no-cache-dir torch==${{ matrix.torch_version }}+${{ matrix.hardware }} torchvision torchaudio --index-url https://download.pytorch.org/whl/${{ matrix.hardware }}
112+
rm -rf ~/.cache/pip
105113
- name: Install package
106114
uses: ./.github/actions/install
107115
with:

0 commit comments

Comments
 (0)