From 6451d58277883a58baad7971f163ac7c576b1a1a Mon Sep 17 00:00:00 2001 From: Arjen Kroezen Date: Fri, 8 Dec 2023 16:55:09 +0100 Subject: [PATCH] fix: poetry shell activation --- .github/workflows/ci-cd.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index d2ac7f1c..51e81681 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -48,25 +48,22 @@ jobs: - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: | - source .venv/bin/activate + poetry shell poetry install --no-interaction --no-root #---------------------------------------------- # install your root project, if required #---------------------------------------------- - name: Install project run: | - source .venv/bin/activate - poetry install --no-interaction + poetry shell + poetry install --no-interaction #---------------------------------------------- # run test suite #---------------------------------------------- - name: Run tests - run: | - source .venv/bin/activate - poetry run pytest . + run: poetry run pytest . - name: Set build version and build package run: | - source .venv/bin/activate poetry version 0.0.0.alpha${{ github.run_number}} poetry build - name: Publish package distributions to PyPI