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:
Hugo van Kemenade 2022-07-31 13:34:28 +03:00 committed by GitHub
parent 0f56290a30
commit 8af617d2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 11 deletions

View File

@ -12,9 +12,9 @@ jobs:
uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Run pre-commit hooks
uses: pre-commit/action@v2.0.3
uses: pre-commit/action@v3.0.0

View File

@ -6,6 +6,10 @@ jobs:
render-peps:
name: Render PEPs
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.x", "3.11-dev"]
steps:
- name: 🛎️ Checkout
@ -13,11 +17,11 @@ jobs:
with:
fetch-depth: 0 # fetch all history so that last modified date-times are accurate
- name: 🐍 Set up Python 3
uses: actions/setup-python@v3
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: "pip"
python-version: ${{ matrix.python-version }}
cache: pip
- name: 👷‍ Install dependencies
run: |
@ -32,10 +36,9 @@ jobs:
- name: 🚀 Deploy to GitHub pages
# This allows CI to build branches for testing
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4.2.2
if: (github.ref == 'refs/heads/main') && (matrix.python-version == '3.x')
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch to deploy to.
folder: build # Synchronise with build.py -> build_directory
single-commit: true # Delete existing files

View File

@ -22,14 +22,17 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11-dev"]
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:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
coverage.xml
pep-0000.txt
pep-0000.rst
pep-????.html

View File

@ -3,6 +3,11 @@ addopts = -r a --strict-config --strict-markers --import-mode=importlib --cov pe
empty_parameter_set_mark = fail_at_collect
filterwarnings =
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
testpaths = pep_sphinx_extensions
xfail_strict = True