From c0b0cd9a6683019f5331a5f4d8949f2d72c800bf Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Fri, 12 Mar 2021 14:34:47 +0800 Subject: [PATCH] The first release of setup-pdm --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c37ddd1..60618a8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ # Setup PDM for GitHub Action -The GitHub Action for using pdm as the package manager +A GitHub Action that installs pdm properly for all Python versions + +## Usage + +Include the action in your workflow yaml file with the following arguments: + +```yaml +steps: + ... + - uses: pdm-project/setup-pdm@v1 + name: Setup PDM + with: + python-version: 3.8 # Version range or exact version of a Python version to use, the same as @action/setup-python + architecture: x64 # The target architecture (x86, x64) of the Python interpreter. the same as @action/setup-python + version: 1.4.0 # The version of PDM to install. Leave it as empty to use the latest version from PyPI + - name: Install dependencies + run: pdm install -d # Then you can use pdm in the following steps. + ... +``` + +You don't need `@action/setup-python` actually.