1- # Copyright (c) 2016-2020 Martin Donath <martin.donath@squidfunk.com>
2-
3- # Permission is hereby granted, free of charge, to any person obtaining a copy
4- # of this software and associated documentation files (the "Software"), to
5- # deal in the Software without restriction, including without limitation the
6- # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7- # sell copies of the Software, and to permit persons to whom the Software is
8- # furnished to do so, subject to the following conditions:
9-
10- # The above copyright notice and this permission notice shall be included in
11- # all copies or substantial portions of the Software.
12-
13- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15- # FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
16- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19- # IN THE SOFTWARE.
20-
211name : documentation
222on :
233 push :
244 branches :
255 - main
266
277env :
28- PYTHON_VERSION : 3.8
8+ PYTHON_VERSION : 3.10.1
299
3010jobs :
3111 documentation :
@@ -41,17 +21,28 @@ jobs:
4121 with :
4222 python-version : ${{ env.PYTHON_VERSION }}
4323
44- - name : Run image
45- uses : abatilo/actions-poetry@v2.0.0
24+ - name : Install poetry
25+ run : |
26+ curl -sSL https://install.python-poetry.org | python3 -
27+ poetry config virtualenvs.create true
28+ poetry config virtualenvs.in-project true
29+ poetry config --list
30+
31+ - name : Load cached venv
32+ id : cached-poetry-dependencies
33+ uses : actions/cache@v2
4634 with :
47- poetry-version : 1.1.5
35+ path : .venv
36+ key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
4837
4938 - name : Install Python dependencies
50- run : |
51- poetry install
39+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
40+ run : poetry install --no-interaction --no-root
41+
42+ - name : Install Python dependencies
43+ run : poetry install --no-interaction
44+
5245 - name : Deploy documentation
53- # env:
54- # GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
5546 run : |
5647 poetry run mkdocs gh-deploy --force
5748 poetry run mkdocs --version
0 commit comments