@@ -23,38 +23,30 @@ jobs:
2323 # check-out repo and set-up python
2424 # ----------------------------------------------
2525 - name : Check out repository
26- uses : actions/checkout@v3
26+ uses : actions/checkout@v4.2.2
27+ with :
28+ fetch-depth : 0
2729
2830 - name : Set up Python ${{ matrix.python-version }}
29- uses : actions/setup-python@v4
31+ uses : actions/setup-python@v5.6.0
32+ id : setup-python
3033 with :
3134 python-version : ${{ matrix.python-version }}
35+ cache : ' poetry'
3236
3337 # ----------------------------------------------
34- # install & configure poetry
38+ # install poetry
3539 # ----------------------------------------------
3640 - name : Install Poetry
37- uses : snok/install-poetry@v1.3
38- with :
39- virtualenvs-create : true
40- virtualenvs-in-project : true
41-
42- # ----------------------------------------------
43- # load cached venv if cache exists
44- # ----------------------------------------------
45- - name : Load cached venv
46- id : cached-poetry-dependencies
47- uses : actions/cache@v3
48- with :
49- path : .venv
50- key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
41+ run : |
42+ pipx install poetry
43+ pipx inject poetry poetry-dynamic-versioning
5144
5245 # ----------------------------------------------
53- # install dependencies if cache does not exist
46+ # install dependencies
5447 # ----------------------------------------------
5548 - name : Install dependencies
56- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
57- run : poetry install --no-interaction --no-root
49+ run : poetry install --no-interaction --no-root --with docs --all-extras
5850
5951 # ----------------------------------------------
6052 # run test suite
0 commit comments