Skip to content

Commit

Permalink
Infra: Test Python 3.11 beta (#2727)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
hugovk and CAM-Gerlach committed Jul 31, 2022
1 parent 0f56290 commit 8af617d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
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
17 changes: 10 additions & 7 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,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

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

0 comments on commit 8af617d

Please sign in to comment.