Newsletter
TechAnV Blog
Get updates on security engineering, Rust, eBPF, and DevSecOps. No spam, unsubscribe anytime.
Check your inbox and click the confirmation link to complete your subscription.
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:
13.11 path:workflows/*.ymlAnd found this example from urllib3 which showed that the version tag to use is:
13.11-devUpdate 28th Noveber 2022:
3.12-devnow works for Python 3.12 preview
I added that to my test matrix like so:
1jobs:2 test:3 runs-on: ubuntu-latest4 strategy:5 matrix:6 python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]7 steps:8 - uses: actions/checkout@v29 - name: Set up Python ${{ matrix.python-version }}10 uses: actions/setup-python@v211 with:12 python-version: ${{ matrix.python-version }}13 # ...Here’s the full workflow.
Newsletter
TechAnV Blog
Get updates on security engineering, Rust, eBPF, and DevSecOps. No spam, unsubscribe anytime.
Check your inbox and click the confirmation link to complete your subscription.