Seemingly correct version and environment not being recognized
See original GitHub issueDescribe the bug A clear and concise description of what the bug is. I have a simple setup python job at the top of my workflow.
- name: Set up Python 3.7.7
id: python_setup
uses: actions/setup-python@v2
with:
python-version: '3.7.x'
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
However, when I run it, it doesn’t seem to work. The weird thing is that you can see that the lines appear to pass correctly, but the test still fails.
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.7.8 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && darwin===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && win32===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x86===x64 && win32===linux
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.7.7 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && darwin===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && win32===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x86===x64 && win32===linux
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.7.6 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && darwin===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && win32===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x86===x64 && win32===linux
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.7.5 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && darwin===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && linux===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x64===x64 && win32===linux
[Lint and Test/Lint and Test ] 💬 ::debug::x86===x64 && win32===linux
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.6.11 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.6.10 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.6.9 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.6.8 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.6.7 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.5.9 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.5.4 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.4.10 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 3.3.7 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 2.7.18 satisfies 3.7.x
[Lint and Test/Lint and Test ] 💬 ::debug::check 2.7.17 satisfies 3.7.x
[Lint and Test/Lint and Test ] ❗ ::error::Version 3.7.x with arch x64 not found%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
[Lint and Test/Lint and Test ] ❌ Failure - Set up Python 3.7.7
Which version of the action are you using?
-
v1
-
v2
- Some other tag (such as
v2.0.1
ormaster
)
Environment
- self-hosted
- Linux
- Windows
- Mac
If applicable, please specify if you’re using a container
Python Versions
Please list all of the effected versions of Python (3.8.2
, etc.)
3.7.x
To Reproduce Steps to reproduce the behavior:
- Set up a VM with the following:
Linux cloudVM 5.3.0-1032-azure #33~18.04.1-Ubuntu SMP Fri Jun 26 15:01:15 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- Have a workflow with the job included.
- Run the workflow.
Run/Repo Url If applicable, and if your repo/run is public, please include a URL so it is easier for us to investigate.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top GitHub Comments
I’m also hitting this with 3.6 (as
3.6.x
). Interestingly, it works in “real” GitHub Actions, but it does not work locally usingnektos/act
.So - I suspect the culprit is actually different platform versions, which you can see in the manifest: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
Those are actually (silently) checked for in
@actions/tool-cache
: https://github.com/actions/toolkit/blob/af821474235d3c5e1f49cee7c6cf636abb0874c4/packages/tool-cache/src/manifest.ts#L87-L96When using nektos/act, you’d want to ensure
act
is using an image that has is based off one supported platform image (per it’s LSB tags). For example, adding-P ubuntu-latest=nektos/act-environments-ubuntu:18.04
to theact
invocation or in.actrc
(careful - thenektos/act-environments-ubuntu:18.04
image is HUGE).