77 - main
88
99jobs :
10+ build-docs :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : [ "3.9" ]
1015 github-pages :
1116 runs-on : ubuntu-latest
1217
@@ -18,41 +23,33 @@ jobs:
1823 # check-out repo and set-up python
1924 # ----------------------------------------------
2025 - name : Check out repository
21- uses : actions/checkout@v3
26+ uses : actions/checkout@v4.2.2
2227 with :
2328 fetch-depth : 0 # fetch all commits/branches so that mike works
24-
25- - name : Setup Python 3.9
26- uses : actions/setup-python@v4
27- with :
28- python-version : 3.9
2929
3030 # ----------------------------------------------
3131 # install & configure poetry
3232 # ----------------------------------------------
3333 - name : Install Poetry
34- uses : snok/install-poetry@v1.3
35- with :
36- virtualenvs-create : true
37- virtualenvs-in-project : true
34+ run : |
35+ pipx install poetry
36+ pipx inject poetry poetry-dynamic-versioning
3837
39- # ----------------------------------------------
40- # load cached venv if cache exists
41- # ----------------------------------------------
42- - name : Load cached venv
43- id : cached-poetry-dependencies
44- uses : actions/cache@v3
38+ # ----------------------------------------------
39+ # setup python
40+ # - ----------------------------------------------
41+ - name : Set up Python ${{ matrix.python-version }}
42+ uses : actions/setup-python@v5.6.0
43+ id : setup-python
4544 with :
46- path : .venv
47- # caching behavior influenced by changes to both pyproject.toml and poetry.lock
48- key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock', '**/pyproject.toml') }}
45+ python-version : ${{ matrix.python-version }}
46+ cache : ' poetry'
4947
5048 # ----------------------------------------------
51- # install dependencies if cache does not exist
49+ # install dependencies
5250 # ----------------------------------------------
5351 - name : Install dependencies
54- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
55- run : poetry install --no-interaction --no-root
52+ run : poetry install --no-interaction --no-root --with docs --all-extras
5653
5754 - name : Configure git user
5855 run : |
0 commit comments