From 374d9a0b288d111c401014fd4581db7a411e1093 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Wed, 20 Mar 2024 11:12:11 +0100 Subject: [PATCH] fix poetry install on macOS and Windows --- .github/workflows/autogpt-ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autogpt-ci.yml b/.github/workflows/autogpt-ci.yml index bd8267478e90..5a63d5a856ed 100644 --- a/.github/workflows/autogpt-ci.yml +++ b/.github/workflows/autogpt-ci.yml @@ -322,6 +322,9 @@ jobs: - name: Install Python dependencies run: | curl -sSL https://install.python-poetry.org | python3 - + + PATH="$HOME/.local/bin:$PATH" + echo "$HOME/.local/bin" >> $GITHUB_PATH poetry install - name: Run pytest with coverage @@ -419,9 +422,14 @@ jobs: run: | Invoke-WebRequest -Uri https://install.python-poetry.org -OutFile install-poetry.py python install-poetry.py - poetry install rm install-poetry.py + $pyPath = "$env:APPDATA\Python\Scripts" + $env:PATH += ";$pyPath" + echo "$pyPath" >> $GITHUB_PATH + + poetry install + - name: Run pytest with coverage run: | poetry run pytest -vv \