1717 - name : Checkout code
1818 uses : actions/checkout@v1
1919
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+
2033 - name : Install GFortran Linux
2134 if : contains( matrix.os, 'ubuntu')
2235 run : |
@@ -35,29 +48,11 @@ jobs:
3548 - name : Run test
3649 run : ./bin/test
3750
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-
5751 - name : Build documentation
5852 run : ford ./pyplot-fortran.md
5953
6054 - name : Deploy Documentation
55+ if : github.ref == 'refs/heads/master'
6156 uses : JamesIves/github-pages-deploy-action@4.1.0
6257 with :
6358 branch : gh-pages # The branch the action should deploy to.
0 commit comments