Skip to content

Commit a9b307e

Browse files
committed
test
1 parent bc78fe7 commit a9b307e

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

.github/workflows/CI.yml

+14-19
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ jobs:
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

Comments
 (0)