You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core.setFailed(`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`);
97964
+
}
97965
+
});
97966
+
}
97953
97967
function cacheDependencies(cache, pythonVersion) {
-[Using the pip-version input](advanced-usage.md#using-the-pip-version-input)
26
+
-[Using the pip-install input](advanced-usage.md#using-the-pip-install-input)
26
27
27
28
## Using the `python-version` input
28
29
@@ -672,3 +673,20 @@ The version of Pip should be specified in the format `major`, `major.minor`, or
672
673
> The `pip-version` input is supported only with standard Python versions. It is not available when using PyPy or GraalPy.
673
674
674
675
> Using a specific or outdated version of pip may result in compatibility or security issues and can cause job failures. For best practices and guidance, refer to the official [pip documentation](https://pip.pypa.io/en/stable/).
676
+
677
+
## Using the pip-install input
678
+
679
+
The `pip-install` input allows you to install dependencies as part of the Python setup step.
680
+
681
+
682
+
```yaml
683
+
steps:
684
+
- uses: actions/checkout@v5
685
+
- name: Set up Python
686
+
uses: actions/setup-python@v6
687
+
with:
688
+
python-version: '3.13'
689
+
pip-install: -r requirements.txt
690
+
```
691
+
> Note: This feature is intended for standard pip-based dependency installations.
692
+
For complex workflows, or alternative package managers (e.g., poetry, pipenv), we recommend using separate steps to maintain clarity and flexibility.
`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`
0 commit comments