Skip to content

Commit

Permalink
purge pip cache every time
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Dec 5, 2024
1 parent a5bd616 commit b5baa84
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/pip-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,19 @@ jobs:
OMP_NUM_THREADS: 1
OPENBLAS_NUM_THREADS: 1
steps:
- name: Cleanup (pre)
if: ${{ always() }}
run: rm -rf pip_venv

- name: Add homebrew to PATH
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
run: echo "/opt/homebrew/bin" >> "$GITHUB_PATH"

- name: Install homebrew packages
run: brew install gcc autoconf pkg-config make automake cmake ninja libtool boost openblas python python-setuptools mpich

- name: Cleanup (pre)
if: ${{ always() }}
run: |
rm -rf pip_venv
"$(brew --prefix)/bin/python3" -m pip cache purge
- name: Create a virtual environment
run: |
"$(brew --prefix)/bin/python3" -m venv pip_venv
Expand Down Expand Up @@ -102,8 +104,7 @@ jobs:
cd pip_venv/src
python -m pip install \
--log=firedrake-install.log \
--no-cache \
--no-binary mpi4py,h5py \
--no-binary h5py \
-v -e './firedrake[test]'
- name: Install CI-specific test dependencies
Expand All @@ -121,4 +122,6 @@ jobs:

- name: Cleanup (post)
if: ${{ always() }}
run: rm -rf pip_venv
run: |
rm -rf pip_venv
"$(brew --prefix)/bin/python3" -m pip cache purge

0 comments on commit b5baa84

Please sign in to comment.