Infra: Test Python 3.11 beta (#2727)
* Bump actions versions * Test Python 3.11 beta * Infra: Apply suggestions from code review Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> * Infra: update JamesIves/github-pages-deploy-action Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> * Infra: Use v4 of action Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
parent
0f56290a30
commit
8af617d2ad
|
@ -12,9 +12,9 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python 3
|
- name: Set up Python 3
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Run pre-commit hooks
|
- name: Run pre-commit hooks
|
||||||
uses: pre-commit/action@v2.0.3
|
uses: pre-commit/action@v3.0.0
|
||||||
|
|
|
@ -6,6 +6,10 @@ jobs:
|
||||||
render-peps:
|
render-peps:
|
||||||
name: Render PEPs
|
name: Render PEPs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version: ["3.x", "3.11-dev"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 🛎️ Checkout
|
- name: 🛎️ Checkout
|
||||||
|
@ -13,11 +17,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # fetch all history so that last modified date-times are accurate
|
fetch-depth: 0 # fetch all history so that last modified date-times are accurate
|
||||||
|
|
||||||
- name: 🐍 Set up Python 3
|
- name: 🐍 Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: "pip"
|
cache: pip
|
||||||
|
|
||||||
- name: 👷 Install dependencies
|
- name: 👷 Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -32,10 +36,9 @@ jobs:
|
||||||
|
|
||||||
- name: 🚀 Deploy to GitHub pages
|
- name: 🚀 Deploy to GitHub pages
|
||||||
# This allows CI to build branches for testing
|
# This allows CI to build branches for testing
|
||||||
if: github.ref == 'refs/heads/main'
|
if: (github.ref == 'refs/heads/main') && (matrix.python-version == '3.x')
|
||||||
uses: JamesIves/github-pages-deploy-action@v4.2.2
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
with:
|
with:
|
||||||
branch: gh-pages # The branch to deploy to.
|
|
||||||
folder: build # Synchronise with build.py -> build_directory
|
folder: build # Synchronise with build.py -> build_directory
|
||||||
single-commit: true # Delete existing files
|
single-commit: true # Delete existing files
|
||||||
|
|
||||||
|
|
|
@ -22,14 +22,17 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10"]
|
python-version: ["3.9", "3.10", "3.11-dev"]
|
||||||
os: [windows-latest, macos-latest, ubuntu-latest]
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
||||||
|
# lxml doesn't yet install for 3.11 on Windows
|
||||||
|
exclude:
|
||||||
|
- { python-version: "3.11-dev", os: windows-latest }
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
coverage.xml
|
||||||
pep-0000.txt
|
pep-0000.txt
|
||||||
pep-0000.rst
|
pep-0000.rst
|
||||||
pep-????.html
|
pep-????.html
|
||||||
|
|
|
@ -3,6 +3,11 @@ addopts = -r a --strict-config --strict-markers --import-mode=importlib --cov pe
|
||||||
empty_parameter_set_mark = fail_at_collect
|
empty_parameter_set_mark = fail_at_collect
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
error
|
error
|
||||||
|
# Awaiting release of https://github.com/python-babel/babel/issues/873
|
||||||
|
# in Babel 2.11, due 2022-08-01 https://github.com/python-babel/babel/milestone/6?closed=1
|
||||||
|
ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning
|
||||||
|
# Awaiting https://github.com/sphinx-doc/sphinx/issues/10440
|
||||||
|
ignore:'imghdr' is deprecated and slated for removal in Python 3.13:DeprecationWarning
|
||||||
minversion = 6.0
|
minversion = 6.0
|
||||||
testpaths = pep_sphinx_extensions
|
testpaths = pep_sphinx_extensions
|
||||||
xfail_strict = True
|
xfail_strict = True
|
||||||
|
|
Loading…
Reference in New Issue