Skip to content

Commit

Permalink
ci: add PDM action
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicoulaud-ledger committed Sep 13, 2024
1 parent 78ed657 commit bc6f0c9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/actions/pdm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Setup python / PDM'
description: 'Setup python / PDM'

inputs:
python-version:
description: 'Python version'
required: true
default: '3.12.3'

runs:
using: "composite"
steps:

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: pip

- name: Install PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ inputs.python-version }}
cache: true

- name: Setup PDM
shell: bash
run: |
pdm config install.cache true

0 comments on commit bc6f0c9

Please sign in to comment.