File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -14,30 +14,22 @@ jobs:
14
14
15
15
runs-on : ubuntu-latest
16
16
17
+ container : python:3.7-alpine
18
+
17
19
steps :
18
20
- name : " Checkout"
19
21
uses : actions/checkout@v2
20
22
21
- - name : " Set up Python 3.7"
22
- uses : actions/setup-python@v1
23
- with :
24
- python-version : ' 3.7' # Semantic version range syntax or exact version of a Python version
25
-
26
23
- name : " Display Python version"
27
24
run : python -c "import sys; print(sys.version)"
28
25
29
- - name : " Install Sphinx dependencies "
30
- run : sudo apt-get install python-dev build-essential
26
+ - name : " Install Sphinx"
27
+ run : pip install --user sphinx
31
28
32
- - name : " Cache pip"
33
- uses : actions/cache@v2
34
- with :
35
- path : ~/.cache/pip
36
- key : ${{ runner.os }}-pip-${{ hashFiles('_build/.requirements.txt') }}
37
- restore-keys : |
38
- ${{ runner.os }}-pip-
29
+ - name : " Install dependencies"
30
+ run : apk add --no-cache git make
39
31
40
- - name : " Install Sphinx + requirements via pip"
32
+ - name : " Install custom requirements via pip"
41
33
run : pip install -r _build/.requirements.txt
42
34
43
35
- name : " Build documentation"
You can’t perform that action at this time.
0 commit comments