@@ -24,36 +24,25 @@ jobs:
2424 runs-on : ${{ matrix.os }}
2525
2626 steps :
27- - name : Checkout
28- uses : actions/checkout@v4
27+ - uses : actions/checkout@v4
2928
3029 - name : Set up Python ${{ matrix.python-version }}
3130 id : setup-python
3231 uses : actions/setup-python@v5
3332 with :
3433 python-version : ${{ matrix.python-version }}
35- cache : ' poetry'
34+ cache : poetry
3635
37- # Install Poetry via pipx
3836 - name : Install Poetry
39- run : |
40- python -m pip install --upgrade pip
41- python -m pip install --upgrade pipx
42- pipx ensurepath
43- pipx install "poetry>=1.8"
44- shell : bash
45-
46- # Ensure pipx bin dir is on PATH for this job
47- - name : Add pipx to PATH
48- if : runner.os != 'Windows'
49- run : echo "$HOME/.local/bin" >> "$GITHUB_PATH"
50- - name : Add pipx to PATH (Windows)
51- if : runner.os == 'Windows'
52- run : echo "$Env:USERPROFILE\.local\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
53- shell : powershell
54-
55- - name : Configure Poetry
56- run : poetry config virtualenvs.in-project true
37+ uses : snok/install-poetry@v1
38+ with :
39+ version : 1.8.3
40+ virtualenvs-create : true
41+ virtualenvs-in-project : true
42+ installer-parallel : true
43+
44+ - name : Check Poetry
45+ run : poetry --version
5746
5847 - name : Install dependencies
5948 run : poetry install --no-interaction --no-ansi
0 commit comments