Skip to content

Commit

Permalink
Uninstall and Install Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Feb 13, 2024
1 parent 8c81d75 commit 8d91149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
os:
- ubuntu-latest
- windows-latest
- macos-11
- macos-12
- macos-13
python-version:
- '3.12'
- '3.11'
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ runs:
shell: bash
if: inputs.install-python == 'true' && runner.os == 'macOS' && inputs.homebrew-python == 'true'
run: |
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" || true
NONINTERACTIVE=1 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew uninstall --force --ignore-dependencies 'python@${{ inputs.python-version }}' || true
brew install --overwrite 'python@${{ inputs.python-version }}'
echo "/usr/local/opt/python@${{ inputs.python-version }}/Frameworks/Python.framework/Versions/${{ inputs.python-version }}/bin" >> $GITHUB_PATH
Expand Down

0 comments on commit 8d91149

Please sign in to comment.