From 370a29560ee6f09c655c774972b5cb7b689f338f Mon Sep 17 00:00:00 2001 From: Mimi Sav Date: Thu, 31 Oct 2024 07:16:33 +0100 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f83532b..66a739f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,19 +45,28 @@ jobs: - name: Install Poetry run: | curl -sSL https://install.python-poetry.org | python3 - - export PATH="$HOME/.local/bin:$PATH" + echo "export PATH=$HOME/.local/bin:\$PATH" >> $GITHUB_ENV - name: Install dependencies working-directory: ./apps/data_handler + env: + PATH: ${{ env.PATH }}:$HOME/.local/bin run: | + # Update lock file if it’s out of sync + poetry lock --no-update poetry install - name: Run Tests for Data Handler working-directory: ./apps/data_handler + env: + PATH: ${{ env.PATH }}:$HOME/.local/bin run: | - poetry run pytest apps/data_handler + poetry run pytest - name: Run Tests for Shared working-directory: ./apps/shared + env: + PATH: ${{ env.PATH }}:$HOME/.local/bin run: | - poetry run pytest apps/shared + poetry install + poetry run pytest