Bump @vercel/ncc from 0.44.0 to 0.45.0 (#1357)
- Bump @vercel/ncc from 0.44.0 to 0.45.0
Bumps @vercel/ncc from 0.44.0 to 0.45.0.
updated-dependencies:
- dependency-name: “@vercel/ncc” dependency-version: 0.45.0 dependency-type: direct:development update-type: version-update:semver-minor …
Signed-off-by: dependabot[bot] support@github.com
- fix: update asset-relocator-loader for compatibility with webpack runtime
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: HarithaVattikuti 73516759+HarithaVattikuti@users.noreply.github.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
setup-python
This action provides the following functionality for GitHub Actions users:
What’s new in V7
@actions/*packages. No changes to action inputs, outputs, or behavior.Breaking changes in V6
For more details, see the full release notes on the releases page
Basic usage
See action.yml
Python
PyPy
GraalPy
Free threaded Python
The
python-versioninput is optional. If not supplied, the action will try to resolve the version from the default.python-versionfile. If the.python-versionfile doesn’t exist Python or PyPy version from the PATH will be used. The default version of Python or PyPy in PATH varies between runners and can be changed unexpectedly so we recommend always setting Python version explicitly using thepython-versionorpython-version-fileinputs.The action will first check the local tool cache for a semver match. If unable to find a specific version in the tool cache, the action will attempt to download a version of Python from GitHub Releases and for PyPy from the official PyPy’s dist.
For information regarding locally cached versions of Python or PyPy on GitHub hosted runners, check out GitHub Actions Runner Images.
Supported version syntax
The
python-versioninput supports the Semantic Versioning Specification and some special version notations (e.g.semver ranges,x.y-dev syntax, etc.), for detailed examples please refer to the section: Using python-version input of the Advanced usage guide.Supported architectures
Using the
architectureinput, it is possible to specify the required Python or PyPy interpreter architecture:x86,x64, orarm64. If the input is not specified, the architecture defaults to the host OS architecture.Caching packages dependencies
The action has built-in functionality for caching and restoring dependencies. It uses toolkit/cache under the hood for caching dependencies but requires less configuration settings. Supported package managers are
pip,pipenvandpoetry. Thecacheinput is optional, and caching is turned off by default.The action defaults to searching for a dependency file (
requirements.txtorpyproject.tomlfor pip,Pipfile.lockfor pipenv orpoetry.lockfor poetry) in the repository, and uses its hash as a part of the cache key. Inputcache-dependency-pathis used for cases when multiple dependency files are used, they are located in different subdirectories or different files for the hash that want to be used.pip, the action will cache the global cache directorypipenv, the action will cache virtualenv directorypoetry, the action will cache virtualenv directories – one for each poetry project foundCaching pip dependencies:
See examples of using
cacheandcache-dependency-pathforpipenvandpoetryin the section: Caching packages of the Advanced usage guide.Advanced usage
setup-pythonwith a self-hosted runnersetup-pythonon GHESRecommended permissions
When using the
setup-pythonaction in your GitHub Actions workflow, it is recommended to set the following permissions to ensure proper functionality:License
The scripts and documentation in this project are released under the MIT License.
Contributions
Contributions are welcome! See our Contributor’s Guide.