Skip to content

Commit 84bfbf8

Browse files
authored
Merge pull request #860 from RasmusOrsoe/fix_workflow
Reduce disk usage of IceTray Runner
2 parents 5fe7f9f + 656645a commit 84bfbf8

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.github/actions/install/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ runs:
5151
shell: bash
5252
run: |
5353
if [[ "${{ inputs.use_vm }}" == "true" ]]; then source ~/venv/bin/activate; fi
54-
pip install --upgrade 'pip>=20'
55-
pip install --upgrade 'setuptools>=68.2.2'
54+
pip install --no-cache-dir --upgrade 'pip>=20'
55+
pip install --no-cache-dir --upgrade 'setuptools>=68.2.2'
5656
5757
- name: Print pip and setuptools versions
5858
shell: bash
@@ -67,6 +67,6 @@ runs:
6767
if [[ "${{ inputs.use_vm }}" == "true" ]]; then source ~/venv/bin/activate; fi
6868
echo "Installing graphnet with flags: ${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }}"
6969
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"
70-
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
70+
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
7171
72-
pip install git+https://github.com/thoglu/jammy_flows.git
72+
pip install --no-cache-dir git+https://github.com/thoglu/jammy_flows.git

.github/workflows/build.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
sudo apt update --fix-missing --yes
7676
sudo apt upgrade --yes
7777
sudo apt-get install --yes git
78+
sudo apt-get clean
7879
7980
- uses: actions/checkout@v4
8081

@@ -88,17 +89,17 @@ jobs:
8889
pip show setuptools
8990
9091
- name: Print available disk space before graphnet install
91-
run: df -h
92-
92+
run: |
93+
df -h
9394
- name: Upgrade packages in virtual environment
9495
shell: bash
9596
run: |
9697
source ~/venv/bin/activate
97-
pip install --upgrade astropy
98-
pip install --upgrade PyYAML
99-
pip install --upgrade psutil
100-
pip install --upgrade setuptools
101-
pip install --upgrade versioneer
98+
pip install --no-cache-dir --upgrade astropy
99+
pip install --no-cache-dir --upgrade PyYAML
100+
pip install --no-cache-dir --upgrade psutil
101+
pip install --no-cache-dir --upgrade setuptools
102+
pip install --no-cache-dir --upgrade versioneer
102103
pip show setuptools
103104
pip show versioneer
104105
- name: Install package
@@ -118,6 +119,9 @@ jobs:
118119
pip show torch-sparse
119120
pip show torch-scatter
120121
pip show jammy_flows
122+
- name: Print available disk space after graphnet install
123+
run: |
124+
df -h
121125
- name: Run unit tests and generate coverage report
122126
shell: bash
123127
run: |

0 commit comments

Comments
 (0)