Skip to content

Commit

Permalink
feat: add python cache action (#9)
Browse files Browse the repository at this point in the history
* feat: add python-cache

* feat: add python-cache
  • Loading branch information
ArielSantos01 authored Aug 7, 2024
1 parent fafe74e commit 2a7e30c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,22 @@ runs:
node-version: ${{ inputs.node-version }}
working-directory: ${{ inputs.node-working-directory }}
cache-key-suffix: ${{ inputs.node-cache-key-suffix }}

- name: Setup Python
if: ${{ inputs.python == 'true' || inputs.enable-all == 'true'}}
uses: actions/setup-python@main
with:
python-version: ${{ inputs.python-version }}

- name: Setup Poetry

# POC
- name: Install poetry
if: ${{ inputs.python == 'true' || inputs.enable-all == 'true'}}
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ inputs.python-poetry-version }}


- if: ${{ inputs.python == 'true' || inputs.enable-all == 'true'}}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: 'poetry'


- name: Setup PKL
if: ${{ inputs.pkl == 'true' || inputs.enable-all == 'true'}}
uses: Drafteame/setup-pkl-action@main
Expand Down

0 comments on commit 2a7e30c

Please sign in to comment.