Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ runs:
if [[ "${{ inputs.use_vm }}" == "true" ]]; then source ~/venv/bin/activate; fi
pip install --no-cache-dir --upgrade 'pip>=20'
pip install --no-cache-dir --upgrade 'setuptools>=68.2.2'
rm -rf ~/.cache/pip

- name: Print pip and setuptools versions
shell: bash
Expand All @@ -68,5 +69,5 @@ runs:
echo "Installing graphnet with flags: ${{ steps.flags.outputs.user_flag }} ${{ steps.flags.outputs.editable_flag }}"
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"
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

rm -rf ~/.cache/pip
pip install --no-cache-dir git+https://github.com/thoglu/jammy_flows.git
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ jobs:
pip --version
python --version
pip show setuptools

rm -rf ~/.cache/pip

- name: Print available disk space before graphnet install
run: |
df -h
Expand All @@ -102,6 +103,13 @@ jobs:
pip install --no-cache-dir --upgrade versioneer
pip show setuptools
pip show versioneer
rm -rf ~/.cache/pip
- name: Install PyTorch and dependencies
shell: bash
run: |
source ~/venv/bin/activate
pip3 install --no-cache-dir torch==${{ matrix.torch_version }}+${{ matrix.hardware }} torchvision torchaudio --index-url https://download.pytorch.org/whl/${{ matrix.hardware }}
rm -rf ~/.cache/pip
- name: Install package
uses: ./.github/actions/install
with:
Expand Down