From 3d824425d2b9072736c47d84a47e831d7df28316 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Sun, 5 May 2024 18:23:45 -0700 Subject: [PATCH] Use `actions/setup-python` for MacOS --- .github/workflows/macos.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index d9b4d829f..787f9a00e 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,6 +21,10 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Set Git http.postBuffer to something high run: git config --global http.postBuffer 524288000 @@ -39,10 +43,7 @@ jobs: continue-on-error: true - name: Install Python dependencies - run: | - python3 -m pip install --upgrade pip - python3 -m pip install setuptools ansicolors sslcrypto - if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi + run: pip install -r tools/requirements.txt - name: make clean run: make clean @@ -61,6 +62,10 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Set Git http.postBuffer to something high run: git config --global http.postBuffer 524288000 @@ -79,10 +84,7 @@ jobs: continue-on-error: true - name: Install Python dependencies - run: | - python3 -m pip install --upgrade pip - python3 -m pip install setuptools ansicolors sslcrypto - if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi + run: pip install -r tools/requirements.txt - name: make clean run: make clean @@ -102,6 +104,10 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Set Git http.postBuffer to something high run: git config --global http.postBuffer 524288000 @@ -120,10 +126,7 @@ jobs: continue-on-error: true - name: Install Python dependencies - run: | - python3 -m pip install --upgrade pip - python3 -m pip install setuptools ansicolors sslcrypto - if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi + run: pip install -r tools/requirements.txt - name: Prepare Build Folders run: |