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
Copy file name to clipboardExpand all lines: README.md
+29-25Lines changed: 29 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -9,43 +9,47 @@ But it is still not obvious and it is a pain for developers to properly build th
9
9
10
10
## Usage
11
11
12
-
Include the action in your workflow yaml file with the following arguments:
12
+
Include the action in your workflow yaml:
13
13
14
14
```yaml
15
15
steps:
16
-
...
17
-
- uses: pdm-project/setup-pdm@v3
18
-
name: Setup PDM
19
-
with:
20
-
python-version: 3.9# Version range or exact version of a Python version to use, the same as actions/setup-python
21
-
architecture: x64# The target architecture (x86, x64) of the Python interpreter. the same as actions/setup-python
22
-
version: 2.7.4 # The version of PDM to install. Leave it as empty to use the latest version from PyPI, or 'head' to use the latest version from GitHub
23
-
prerelease: false # Allow prerelease versions of PDM to be installed
24
-
enable-pep582: false # Enable PEP 582 package loading globally
25
-
allow-python-prereleases: false # Allow prerelease versions of Python to be installed. For example if only 3.12-dev is available, 3.12 will fallback to 3.12-dev
26
-
update-python: true # Update the environment with the requested python version
16
+
- uses: actions/checkout@v3
17
+
- name: Setup PDM
18
+
uses: pdm-project/setup-pdm@v3
19
+
# You are now able to use PDM in your workflow
27
20
- name: Install dependencies
28
-
run: pdm install # Then you can use pdm in the following steps.
| `python-version` | `3.x` | Version range or exact version of a Python version to use, using SemVer's version range syntax. |
33
+
| `architecture` | `x64` | The target architecture (x86, x64) of the Python interpreter. |
34
+
| `allow-python-prereleases` | `false` | Allow prerelease versions of Python to be installed. |
35
+
| `token` | `${{ github.token }}` | Used to pull python distributions from actions/python-versions. Since there's a default, this is typically not supplied by the user. |
36
+
| `version` | Not specified | The version of PDM to install, or 'head' to install from the main branch. |
37
+
| `prerelease` | `false` | Allow prerelease versions of PDM to be installed |
0 commit comments