Skip to content

Commit fce04b5

Browse files
committed
Omit caching of pip packages in installation
1 parent 5fe7f9f commit fce04b5

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

.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-dirgit+https://github.com/thoglu/jammy_flows.git

.github/workflows/build.yml

Lines changed: 8 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

0 commit comments

Comments
 (0)