Skip to content
Snippets Groups Projects
Unverified Commit 419c863e authored by Chris Holdgraf's avatar Chris Holdgraf Committed by GitHub
Browse files

MAINT: Use Python 3.9 in github action for windows/osx (#1635)

parent 79475079
No related branches found
No related tags found
No related merge requests found
...@@ -127,14 +127,16 @@ jobs: ...@@ -127,14 +127,16 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
strategy: strategy:
matrix: matrix:
python-version: [3.8] # Using the default python in the Windows 2022 github actions runner
# ref: https://github.com/actions/virtual-environments/issues/4856
python-version: [3.9]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.8 - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: ~\AppData\Local\pip\Cache path: ~\AppData\Local\pip\Cache
...@@ -155,25 +157,28 @@ jobs: ...@@ -155,25 +157,28 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
strategy: strategy:
matrix: matrix:
python-version: [3.8] python-version: [3.9]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.8 - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: ~\AppData\Local\pip\Cache path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('setup.py') }} key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('setup.py') }}
restore-keys: | restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip- ${{ runner.os }}-${{ matrix.python-version }}-pip-
# We install libmagic to avoid a flaky Fonts error with matplotlib
# ref: https://stackoverflow.com/questions/62279920/python-macos-error-unable-to-revert-mtime-library-fonts
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install wheel pip install wheel
pip install --upgrade-strategy eager -e .[sphinx] pip install --upgrade-strategy eager -e .[sphinx]
brew install libmagic
- name: Build the book - name: Build the book
run: | run: |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment