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
-[Using the pip-version input](advanced-usage.md#using-the-pip-version-input)
25
26
26
27
## Using the `python-version` input
27
28
@@ -643,3 +644,22 @@ jobs:
643
644
- run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}
644
645
```
645
646
647
+
## Using the pip-version input
648
+
649
+
The `pip-version` input allows you to specify the desired version of **Pip** to use with the standard Python version.
650
+
The version of Pip should be specified in the format `major`, `major.minor`, or `major.minor.patch` (for example: 25, 25.1, or 25.0.1).
651
+
652
+
```yaml
653
+
steps:
654
+
- uses: actions/checkout@v4
655
+
- name: Set up Python
656
+
uses: actions/setup-python@v5
657
+
with:
658
+
python-version: '3.13'
659
+
pip-version: '25.0.1'
660
+
- name: Display Pip version
661
+
run: pip --version
662
+
```
663
+
> The `pip-version` input is supported only with standard Python versions. It is not available when using PyPy or GraalPy.
664
+
665
+
> 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/).
0 commit comments