From 93f5afe876c4b1c2054ffc493fac190880e00a12 Mon Sep 17 00:00:00 2001 From: zyf722 <1124982772@qq.com> Date: Sat, 17 Aug 2024 22:58:01 +0800 Subject: [PATCH] fix(ci): use `python-path` for poetry env as X.Y not working on windows (python-poetry/poetry#2117) --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 841f48c..f13d0db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,13 +23,15 @@ jobs: pipx install poetry - name: Set up Python + id: python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: poetry - name: Set Poetry environment - run: poetry env use ${{ matrix.python-version }} + run: poetry env use '${{ steps.python.outputs.python-path }}' + - name: Install dependencies run: poetry install