|
1 | 1 | name: CI
|
2 |
| - |
3 | 2 | on: [push]
|
4 |
| - |
5 | 3 | jobs:
|
6 | 4 | Build:
|
7 | 5 | runs-on: ${{ matrix.os }}
|
8 | 6 | strategy:
|
9 | 7 | fail-fast: false
|
10 | 8 | matrix:
|
11 | 9 | os: [ubuntu-latest]
|
12 |
| - gcc_v: [9, 10] # Version of GFortran we want to use. |
| 10 | + gcc_v: [9] # Version of GFortran we want to use. |
13 | 11 | env:
|
14 | 12 | FC: gfortran-${{ matrix.gcc_v }}
|
15 | 13 | GCC_V: ${{ matrix.gcc_v }}
|
|
18 | 16 | - name: Checkout code
|
19 | 17 | uses: actions/checkout@v1
|
20 | 18 |
|
21 |
| - - name: Set up Python 3.x |
22 |
| - uses: actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc. |
23 |
| - with: |
24 |
| - python-version: 3.x |
25 |
| - |
26 |
| - - name: Install other tools |
27 |
| - if: contains( matrix.os, 'ubuntu') |
28 |
| - run: | |
29 |
| - sudo apt-get install graphviz |
30 |
| - sudo -H pip install numpy |
31 |
| - sudo -H pip install ford && ford --version |
32 |
| - sudo -H pip install matplotlib |
33 |
| -
|
34 | 19 | - name: Install GFortran Linux
|
35 | 20 | if: contains( matrix.os, 'ubuntu')
|
36 | 21 | run: |
|
|
49 | 34 | - name: Run test
|
50 | 35 | run: ./bin/test
|
51 | 36 |
|
| 37 | +name: Build and Deploy Documentation |
| 38 | +on: |
| 39 | + push: |
| 40 | + branches: |
| 41 | + - master |
| 42 | +jobs: |
| 43 | + build-and-deploy: |
| 44 | + runs-on: ubuntu-latest |
| 45 | + steps: |
| 46 | + - name: Checkout code |
| 47 | + uses: actions/checkout@v1 |
| 48 | + |
| 49 | + - name: Set up Python 3.x |
| 50 | + uses: actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc. |
| 51 | + with: |
| 52 | + python-version: 3.x |
| 53 | + |
| 54 | + - name: Install other tools |
| 55 | + if: contains( matrix.os, 'ubuntu') |
| 56 | + run: | |
| 57 | + sudo apt-get install graphviz |
| 58 | + sudo -H pip install numpy |
| 59 | + sudo -H pip install ford && ford --version |
| 60 | + sudo -H pip install matplotlib |
| 61 | +
|
52 | 62 | - name: Build documentation
|
53 | 63 | run: ford ./pyplot-fortran.md
|
54 | 64 |
|
|
0 commit comments