Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infra: Test Python 3.11 beta #2727

Merged
merged 5 commits into from
Jul 31, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 10 additions & 6 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@ 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
uses: actions/checkout@v3
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: |
Expand All @@ -32,8 +36,8 @@ 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.3.4
hugovk marked this conversation as resolved.
Show resolved Hide resolved
with:
branch: gh-pages # The branch to deploy to.
hugovk marked this conversation as resolved.
Show resolved Hide resolved
folder: build # Synchronise with build.py -> build_directory
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage.xml
pep-0000.txt
pep-0000.rst
pep-????.html
Expand Down
5 changes: 5 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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