From 0c09d9a86d3f753c9b44e795eb4a02dcf0116799 Mon Sep 17 00:00:00 2001 From: Alex Dewar Date: Tue, 7 Jan 2025 09:54:24 +0000 Subject: [PATCH] CI: Install poetry via pipx This fixes a bug whereby the runner's system Python was used instead of the version we want. Also add caching for poetry packages. --- .github/workflows/ci-poetry.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-poetry.yml b/.github/workflows/ci-poetry.yml index af675fb..7944642 100644 --- a/.github/workflows/ci-poetry.yml +++ b/.github/workflows/ci-poetry.yml @@ -18,14 +18,13 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Poetry + run: pipx install poetry + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - - name: Install Poetry - uses: abatilo/actions-poetry@v3.0.0 - with: - poetry-version: 1.2.2 + cache: poetry - name: Install dependencies run: pip install -r dev-requirements.txt