Skip to content

Commit

Permalink
Add 3.12 as a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-ning-usds committed Nov 19, 2023
1 parent cb52aef commit 987f7ca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ jobs:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
env:
PYTHON_TO_NOT_USE: "3.12"
steps:
- name: Install extras
if: ${{ matrix.os == 'macos-latest'}}
run: |
sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.12
sudo rm -rf "/Applications/Python 3.12"
sudo find /usr/local/bin -lname '../../../Library/Frameworks/Python.framework/Versions/3.12/*' -delete
sudo rm -rf "/Library/Frameworks/Python.framework/Versions/${PYTHON_TO_NOT_USE}"
sudo rm -rf "/Applications/Python ${PYTHON_TO_NOT_USE}"
sudo find /usr/local/bin -lname '../../../Library/Frameworks/Python.framework/Versions/${PYTHON_TO_NOT_USE}/*' -delete
brew link --force python@3.11
hash -r
python3 --version
Expand Down

0 comments on commit 987f7ca

Please sign in to comment.