Skip to content

Commit 7bd2ad5

Browse files
authored
feat(ci): enable poetry cache in setup-python (#682)
1 parent 986470a commit 7bd2ad5

File tree

1 file changed

+5
-1
lines changed
  • project/.github/workflows

1 file changed

+5
-1
lines changed

project/.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,15 @@ jobs:
4848
runs-on: ${{ matrix.os }}
4949
steps:
5050
- uses: actions/checkout@v4
51+
- name: Install poetry
52+
run: pipx install poetry
5153
- name: Set up Python
5254
uses: actions/setup-python@v5
55+
id: setup-python
5356
with:
5457
python-version: ${{ matrix.python-version }}
55-
- uses: snok/[email protected]
58+
cache: "poetry"
59+
- run: echo "Cache hit:${{ steps.setup-python.outputs.cache-hit }}" # true if cache-hit occurred on the primary key
5660
- name: Install Dependencies
5761
run: poetry install
5862
shell: bash

0 commit comments

Comments
 (0)