4
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2025-11-07 05:26:56 +00:00

Improve error message

This commit is contained in:
“gowridurgad” 2025-09-17 11:59:15 +05:30
parent 9bfc313c8c
commit cb37554d28
6 changed files with 10 additions and 10 deletions

View file

@ -238,7 +238,7 @@ jobs:
] ]
python-version: [3.13.0t, 3.13.1t, 3.13.2t] python-version: [3.13.0t, 3.13.1t, 3.13.2t]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Setup Python - name: Setup Python
uses: ./ uses: ./
with: with:
@ -264,7 +264,7 @@ jobs:
] ]
python-version: [3.13.0t, 3.13.1t, 3.13.2t] python-version: [3.13.0t, 3.13.1t, 3.13.2t]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Setup Python - name: Setup Python
uses: ./ uses: ./
with: with:

View file

@ -325,7 +325,7 @@ jobs:
] ]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Setup Python - name: Setup Python
uses: ./ uses: ./
with: with:
@ -351,7 +351,7 @@ jobs:
] ]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Setup Python - name: Setup Python
uses: ./ uses: ./
with: with:

2
dist/setup/index.js vendored
View file

@ -97964,7 +97964,7 @@ function installPipPackages() {
core.info('Successfully installed pip packages'); core.info('Successfully installed pip packages');
} }
catch (error) { catch (error) {
core.setFailed(`Failed to install pip packages from "${pipInstall}". Please verify that the package names and versions in the requirements file are correct, 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.`); core.setFailed(`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct, 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.`);
} }
}); });
} }

View file

@ -681,9 +681,9 @@ The `pip-install` input allows you to install dependencies as part of the Python
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v6
with: with:
python-version: '3.13' python-version: '3.13'
pip-install: -r requirements.txt pip-install: -r requirements.txt

View file

@ -37,7 +37,7 @@ async function installPipPackages() {
core.info('Successfully installed pip packages'); core.info('Successfully installed pip packages');
} catch (error) { } catch (error) {
core.setFailed( core.setFailed(
`Failed to install pip packages from "${pipInstall}". Please verify that the package names and versions in the requirements file are correct, 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.` `Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct, 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.`
); );
} }
} }