setup-python
setup-python copied to clipboard
Set up your GitHub Actions workflow with a specific version of Python
**Description:** GitHub has added the arm64 runner, so arch should be used as part of the cache key. Otherwise, if there are `macos-13` `macos-14` running at the same time, the...
**Description:** I have exported `RUNNER_TOOL_CACHE` and `AGENT_TOOLSDIRECTORY` in the shell running the self-hosted runner, however a `pip install` in the workflow still uses `/opt/hostedtoolcache` directory. [job-log.txt](https://github.com/user-attachments/files/16347101/job-log.txt) ``` 2024-07-23T09:20:33.0492190Z [1/41] Compiling...
**Description:** The version '3.11.6' with architecture 'x64' was not found for this operating system. Operating System - RHEL9. NAME="Red Hat Enterprise Linux" VERSION="9.4 (Plow)" ID="rhel" ID_LIKE="fedora" VERSION_ID="9.4" PLATFORM_ID="platform:el9" PRETTY_NAME="Red Hat...
**Description:** I'm occasionally getting the following error when this Action is ran: ``` Run actions/setup-python@v5 Installed versions Version 3.12.3 was not found in the local cache Error: candidates is not...
**Description:** This pull request addresses compatibility issues on Windows by ensuring that filename for Python and PyPy package downloads explicitly include the `.zip` extension. This change allows the `Expand-Archive` command...
**Description:** The `setup-python` action fails when installing Python 3.8 on the `macos-latest`. Please note that the `setup-python` action is the second one to run, just after checkout. https://github.com/pypa/setuptools/actions/runs/8982558570/job/24670435133?pr=4329#step:3:32 ```python 2024-05-07T08:58:00.5927920Z...
**Description:** When `PipCache` attempts to generate `pip` cache keys and [invokes](https://github.com/actions/setup-python/blob/82c7e631bb3cdc910f68e0081d67478d79c6982d/src/cache-distributions/pip-cache.ts#L69) `getLinuxInfo` while running on Amazon Linux 2023, the following error occurs: > Error: Unable to locate executable file: lsb_release....
**Description:** When providing a `pyproject.toml` that uses TOML 1.0.0 entries as `python-version-file` the action fails due to an error within the TOML parser. **Action version:** `v5.1.0` **Platform:** - [x] Ubuntu...
**Description:** When using `'poetry'` as mode, a cache that was generated with an incorrect virtualenv name / path will never be invalidated until `poetry.lock` is changed, despite not working as...
This PR will change cache directory validation error to warning **Related issue:** https://github.com/actions/setup-python/issues/831 https://github.com/actions/setup-python/issues/436