2021-03-12 15:27:07 +08:00
2021-03-12 15:27:07 +08:00
2021-03-12 15:27:07 +08:00
2021-03-12 15:27:07 +08:00
2021-03-12 14:26:01 +08:00
2021-03-12 15:27:07 +08:00
2021-03-01 09:45:02 +08:00
2021-03-12 13:46:10 +08:00
2021-03-12 14:26:01 +08:00
2021-03-12 14:26:01 +08:00
2021-03-12 15:27:07 +08:00
2021-03-12 14:26:01 +08:00
2021-03-01 11:01:34 +08:00

Setup PDM for GitHub Action

A GitHub Action that installs pdm properly for all Python versions

Usage

Include the action in your workflow yaml file with the following arguments:

steps:
    ...
    - uses: pdm-project/setup-pdm@v1.1
      name: Setup PDM
      with:
        python-version: 3.8  # Version range or exact version of a Python version to use, the same as actions/setup-python
        architecture: x64    # The target architecture (x86, x64) of the Python interpreter. the same as actions/setup-python
        version: 1.4.0       # The version of PDM to install. Leave it as empty to use the latest version from PyPI
        prerelease: true     # Allow prerelease versions to be installed
    - name: Install dependencies
      run: pdm install -d    # Then you can use pdm in the following steps.
    ...

You don't need actions/setup-python actually.

Description
A GitHub Action that installs pdm properly for all Python versions
Readme MIT 4.6 MiB
Languages
TypeScript 90.1%
Python 9%
JavaScript 0.9%