Starting April 6, 2020, Python 2 will no longer be offered on any hosted virtual environments. Python 2 was sunset on January 1, 2020 and is not being improved or taking security fixes.

If you're using setup-python, please update your workflows to use Python versions 3.x.

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
  with:
    python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
    architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- run: python my_script.py

For the latest updates, be sure to subscribe to the announcement in the actions/virtual-environments repository.