Skip to content

Commit

Permalink
Use Brew Python on MacOs
Browse files Browse the repository at this point in the history
  • Loading branch information
gemenerik committed Nov 21, 2024
1 parent 5d0ccc7 commit 14cf8b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ jobs:
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
if: runner.os == 'Linux' || runner.os == 'Windows'
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Set up Python ${{ matrix.python-version }} and venv on macOS
if: runner.os == 'macOS'
run: |
brew install python@${{ matrix.python-version }}
$(brew --prefix)/bin/python${{ matrix.python-version }} -m venv venv
echo "PATH=$(pwd)/venv/bin:$PATH" >> $GITHUB_ENV
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip build setuptools
Expand Down

0 comments on commit 14cf8b5

Please sign in to comment.