17
17
- name : Checkout code
18
18
uses : actions/checkout@v1
19
19
20
+ - name : Set up Python 3.x
21
+ uses : actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc.
22
+ with :
23
+ python-version : 3.x
24
+
25
+ - name : Install other tools
26
+ if : contains( matrix.os, 'ubuntu')
27
+ run : |
28
+ sudo apt-get install graphviz
29
+ sudo -H pip install numpy
30
+ sudo -H pip install ford && ford --version
31
+ sudo -H pip install matplotlib
32
+
20
33
- name : Install GFortran Linux
21
34
if : contains( matrix.os, 'ubuntu')
22
35
run : |
@@ -35,29 +48,11 @@ jobs:
35
48
- name : Run test
36
49
run : ./bin/test
37
50
38
- Deploy-Docs :
39
- runs-on : ubuntu-latest
40
- steps :
41
- - name : Checkout code
42
- uses : actions/checkout@v1
43
-
44
- - name : Set up Python 3.x
45
- uses : actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc.
46
- with :
47
- python-version : 3.x
48
-
49
- - name : Install other tools
50
- if : contains( matrix.os, 'ubuntu')
51
- run : |
52
- sudo apt-get install graphviz
53
- sudo -H pip install numpy
54
- sudo -H pip install ford && ford --version
55
- sudo -H pip install matplotlib
56
-
57
51
- name : Build documentation
58
52
run : ford ./pyplot-fortran.md
59
53
60
54
- name : Deploy Documentation
55
+ if : github.ref == 'refs/heads/master'
61
56
uses : JamesIves/github-pages-deploy-action@4.1.0
62
57
with :
63
58
branch : gh-pages # The branch the action should deploy to.
0 commit comments