pdm-project/Setup PDM
Set up a specific version of PDM and uses a given Python version to work on
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| python-version | Version range or exact version of a Python version to use, using SemVer's version range syntax. | — | — |
| python-version-file | File containing the Python version to use. Example: .python-version | — | — |
| architecture | The target architecture (x86, x64, arm64) of the Python interpreter. | no | — |
| allow-python-prereleases | Allow prerelease versions of Python to be installed. | no | false |
| freethreaded | Use the freethreaded version of Python. | no | false |
| token | Used to pull python distributions from actions/python-versions. Since there's a default, this is typically not supplied by the user. | no | ${{ github.token }} |
| version | The version of PDM to install, or 'head' to install from the main branch. | no | — |
| prerelease | Allow prerelease versions to be installed | no | false |
| enable-pep582 | Enable PEP 582 package loading globally. | no | false |
| cache | Cache PDM installation. | no | false |
| cache-dependency-path | The dependency file(s) to cache. | no | pdm.lock |
| cache-restore-exact-match | Restore cache ONLY on exact match with the primary key. Note: Post-installation cache will still be saved if cache is 'true'. | no | false |
| update-python | Whether to update the environment with the requested Python | — | true |
Outputs
| name | description |
|---|---|
| python-version | The installed Python or PyPy version. Useful when given a version range as input. |
| python-path | The absolute path to the Python or PyPy executable. |
| pdm-version | The installed PDM version. |
| pdm-bin | The absolute path to the PDM executable. |
| cache-hit | Whether or not there was a cache hit. |