From 5163ba7edc516b6907d80183294f8c21eeb333b0 Mon Sep 17 00:00:00 2001 From: adamghill Date: Sun, 28 Jul 2024 17:25:26 -0400 Subject: [PATCH] Clean up poetry install for coverage. --- .github/workflows/coverage.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4d44d1a1..e8481de2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,10 +1,14 @@ name: Coverage + on: push: branches: - main workflow_dispatch: +env: + PYTHON_VERSION: 3.11 + jobs: generate-coverage: runs-on: ubuntu-latest @@ -14,19 +18,16 @@ jobs: with: fetch-depth: 1 - - name: Set up Python 3.11 - uses: actions/setup-python@v2.1.4 - with: - python-version: "3.11" - - name: Install Poetry - uses: abatilo/actions-poetry@v2.1.6 - with: - poetry-version: 1.6.1 - - - name: Set Poetry config run: | - poetry config virtualenvs.path ~/.virtualenvs3.11 + pipx install poetry + poetry config virtualenvs.path ~/.virtualenvs${{ env.PYTHON_VERSION }} + + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v3 + with: + python-version: ${{ env.PYTHON_VERSION }} + cache: "poetry" - name: Install dependencies run: poetry install -E minify