Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Do Not Merge] Troubleshooting the Homebrew installs #7006

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,51 @@ jobs:
jupyter notebook --version
jupyter notebook --help

install-brew:
needs: [build]
runs-on: macos-latest
timeout-minutes: 15
steps:
- name: Install Python
run: |
sudo mkdir -p /opt/homebrew
sudo chown -R $(whoami) /opt/homebrew
sudo chown -R $(whoami) /opt
echo 'export HOMEBREW_PREFIX=/opt/homebrew'
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> $GITHUB_ENV
sudo mv /usr/local/* /opt/homebrew/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" --prefix=/opt/homebrew
ls -a /opt/homebrew
brew update
brew install [email protected]
DIR="/opt/homebrew/bin/python3.11"; [ -d "$DIR" ] && echo '$DIR directory exists.'
- uses: actions/download-artifact@v3
with:
name: notebook-dist-${{ github.run_number }}
path: ./dist
- name: Install the prerequisites
run: |
which python3
python3 -m pip install -U pip wheel
- name: Install the package
run: |
cd dist
which python3
python3 -m pip install -vv notebook*.whl
- name: Validate environment
run: |
which python3
python3 -m pip freeze
python3 -m pip check
- name: Validate the install
run: |
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "@jupyter-notebook/lab-extension.*enabled.*ok" -
jupyter server extension list
jupyter server extension list 2>&1 | grep -ie "notebook.*enabled" -
jupyter notebook --version
jupyter notebook --help

check_links:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down