Skip to content

Commit

Permalink
can I cache pipx and poetry as well?
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed May 23, 2024
1 parent a7b3977 commit d429fa9
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/code_quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,21 @@ jobs:
with:
python-version: '3.11'

- name: Cache pipx and Poetry installation
id: cache-poetry
uses: actions/cache@v4
with:
path: |
~/.local/pipx
~/.local/bin/poetry
key: ${{ runner.os }}-pipx-poetry-${{ hashFiles('**/poetry.lock') }}

- name: Install Poetry
run: pipx install poetry
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
python -m pip install --user pipx
python -m pipx ensurepath
pipx install poetry
- name: Generate hash of lint dependencies only
run: |
Expand Down Expand Up @@ -95,8 +108,21 @@ jobs:
with:
python-version: '3.11'

- name: Install poetry
run: pipx install poetry
- name: Cache pipx and Poetry installation
id: cache-poetry
uses: actions/cache@v4
with:
path: |
~/.local/pipx
~/.local/bin/poetry
key: ${{ runner.os }}-pipx-poetry-${{ hashFiles('**/poetry.lock') }}

- name: Install Poetry
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
python -m pip install --user pipx
python -m pipx ensurepath
pipx install poetry
- name: Generate hash of types dependencies only
run: |
Expand Down

0 comments on commit d429fa9

Please sign in to comment.