From 83cfc044537333c651b588a4fadaaec11ddf1fca Mon Sep 17 00:00:00 2001 From: Tarrailt Date: Thu, 8 Feb 2024 18:13:06 +0800 Subject: [PATCH] :construction_worker: add setup-python CI --- .github/actions/setup-python/action.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/actions/setup-python/action.yml diff --git a/.github/actions/setup-python/action.yml b/.github/actions/setup-python/action.yml new file mode 100644 index 00000000..ce7d0ff7 --- /dev/null +++ b/.github/actions/setup-python/action.yml @@ -0,0 +1,21 @@ +name: Setup Python +description: Setup Python + +inputs: + python-version: + description: Python version + required: false + default: "3.10" + +runs: + using: "composite" + steps: + - uses: pdm-project/setup-pdm@v3 + name: Setup PDM + with: + python-version: ${{ inputs.python-version }} + architecture: "x64" + cache: true + + - run: pdm sync -G:all + shell: bash \ No newline at end of file