From 07404b5b7fe07ee162b40bc60204504513519ce2 Mon Sep 17 00:00:00 2001 From: Jan Lipponen Date: Tue, 6 Feb 2024 18:53:07 +0200 Subject: [PATCH] Set up caching of poetry env --- .github/workflows/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 69d9aaa..b3664c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,14 +14,15 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Poetry + run: | + pipx install poetry==${{env.POETRY_VERSION}} + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - name: Install Poetry - run: | - pipx install poetry==${{env.POETRY_VERSION}} + cache: 'poetry' - name: Install dependencies run: |