CARVIEW |
Select Language
HTTP/2 200
date: Fri, 10 Oct 2025 11:20:03 GMT
server: Fly/6f91d33b9d (2025-10-08)
content-type: text/html; charset=utf-8
content-encoding: gzip
via: 2 fly.io, 2 fly.io
fly-request-id: 01K76XJVNNDGHP1P73WR732MSM-bom
Testing against Python 3.11 preview using GitHub Actions | Simon Willison’s TILs
Testing against Python 3.11 preview using GitHub Actions
I decided to run my CI tests against the Python 3.11 preview, to avoid the problem I had when Python 3.10 came out with a bug that affected Datasette.
I used the new GitHub Code Search to figure out how to do this. I searched for:
3.11 path:workflows/*.yml
And found this example from urllib3
which showed that the version tag to use is:
3.11-dev
Update 28th Noveber 2022:
3.12-dev
now works for Python 3.12 preview
I added that to my test matrix like so:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# ...
Here's the full workflow.
Related
- github-actions Running tests against multiple versions of a Python dependency in GitHub Actions - 2023-09-15
- github-actions actions/setup-python caching for setup.py projects - 2022-11-28
- github-actions Deploying a live Datasette demo when the tests pass - 2022-03-27
- github-actions Installing different PostgreSQL server versions in GitHub Actions - 2021-07-05
- github-actions Running tests against PostgreSQL in a service container - 2021-02-23
- python Quickly testing code in a different Python version using pyenv - 2023-07-10
- github-actions Using Prettier to check JavaScript code style in GitHub Actions - 2020-12-31
- googlecloud Workaround for google-github-actions/setup-gcloud errors - 2022-12-01
- docker Run pytest against a specific Python version using Docker - 2022-09-05
- github Configuring Dependabot for a Python project - 2022-01-14
Created 2022-02-02T14:20:31-08:00, updated 2022-11-28T22:54:10-08:00 · History · Edit