Skip to content
Advertisement

How do you add an unstable version of Python in a GitHub Actions test matrix?

I want to update my GitHub Actions workflow to reflect the availability of Python 3.11.

This is the list of available Python versions, which include:

  • “3.11.0-beta.3”
  • “3.11.0-beta.2”

This is the test matrix:

JavaScript

How do I add the latest Python release?

This doesn’t work:

JavaScript

Error:

JavaScript

Advertisement

Answer

The error was using 3.11 without further specification as 3.11 doesn’t exist.

This solves the issue:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement