check-python-exists
Simple action to ensure the desired Python version exists on the running machine
README
check-python-exists
This is a basic wrapper around the GHA provided actions/setup-python that:
- avoids the issue with requiring
sudoand having/Users/runner/hostedtoolcacheon the self hosted runner. - Add support for Windows/ARM64 until it is fixed upstream.
- If
is-self-hosted: falsethen this falls back toactions/setup-pythonat v5.0.0. - If
python-versionis provided, that takes precedence over any existing.python-versionfiles - If running on Windows/arm64, uses a hack hardcoded for 3.11.
- If you need to point to a different
.python-versionfile, pass the path relative to the current working directory to thepython-version-fileparameter.
