Skip to content

Commit 8af617d

Browse files
hugovkCAM-Gerlach
andauthored
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>
1 parent 0f56290 commit 8af617d

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
uses: actions/checkout@v3
1313

1414
- name: Set up Python 3
15-
uses: actions/setup-python@v3
15+
uses: actions/setup-python@v4
1616
with:
1717
python-version: '3.x'
1818

1919
- name: Run pre-commit hooks
20-
uses: pre-commit/action@v2.0.3
20+
uses: pre-commit/action@v3.0.0

.github/workflows/render.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ jobs:
66
render-peps:
77
name: Render PEPs
88
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: ["3.x", "3.11-dev"]
913

1014
steps:
1115
- name: 🛎️ Checkout
1216
uses: actions/checkout@v3
1317
with:
1418
fetch-depth: 0 # fetch all history so that last modified date-times are accurate
1519

16-
- name: 🐍 Set up Python 3
17-
uses: actions/setup-python@v3
20+
- name: 🐍 Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
1822
with:
19-
python-version: '3.x'
20-
cache: "pip"
23+
python-version: ${{ matrix.python-version }}
24+
cache: pip
2125

2226
- name: 👷‍ Install dependencies
2327
run: |
@@ -32,10 +36,9 @@ jobs:
3236

3337
- name: 🚀 Deploy to GitHub pages
3438
# This allows CI to build branches for testing
35-
if: github.ref == 'refs/heads/main'
36-
uses: JamesIves/github-pages-deploy-action@v4.2.2
39+
if: (github.ref == 'refs/heads/main') && (matrix.python-version == '3.x')
40+
uses: JamesIves/github-pages-deploy-action@v4
3741
with:
38-
branch: gh-pages # The branch to deploy to.
3942
folder: build # Synchronise with build.py -> build_directory
4043
single-commit: true # Delete existing files
4144

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
python-version: ["3.9", "3.10"]
25+
python-version: ["3.9", "3.10", "3.11-dev"]
2626
os: [windows-latest, macos-latest, ubuntu-latest]
27+
# lxml doesn't yet install for 3.11 on Windows
28+
exclude:
29+
- { python-version: "3.11-dev", os: windows-latest }
2730

2831
steps:
2932
- uses: actions/checkout@v3
3033

3134
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v3
35+
uses: actions/setup-python@v4
3336
with:
3437
python-version: ${{ matrix.python-version }}
3538
cache: pip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
coverage.xml
12
pep-0000.txt
23
pep-0000.rst
34
pep-????.html

pytest.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ addopts = -r a --strict-config --strict-markers --import-mode=importlib --cov pe
33
empty_parameter_set_mark = fail_at_collect
44
filterwarnings =
55
error
6+
# Awaiting release of https://github.com/python-babel/babel/issues/873
7+
# in Babel 2.11, due 2022-08-01 https://github.com/python-babel/babel/milestone/6?closed=1
8+
ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning
9+
# Awaiting https://github.com/sphinx-doc/sphinx/issues/10440
10+
ignore:'imghdr' is deprecated and slated for removal in Python 3.13:DeprecationWarning
611
minversion = 6.0
712
testpaths = pep_sphinx_extensions
813
xfail_strict = True

0 commit comments

Comments
 (0)