|
4 | 4 |
|
5 | 5 | Build: |
6 | 6 | runs-on: ${{ matrix.os }} |
| 7 | + permissions: |
| 8 | + contents: write |
7 | 9 | strategy: |
8 | 10 | fail-fast: false |
9 | 11 | matrix: |
10 | 12 | os: [ubuntu-latest] |
11 | | - gcc_v: [9] # Version of GFortran we want to use. |
12 | | - python-version: [3.7] |
| 13 | + gcc_v: [10] # Version of GFortran we want to use. |
| 14 | + python-version: [3.9] |
13 | 15 | env: |
14 | 16 | FC: gfortran-${{ matrix.gcc_v }} |
15 | 17 | GCC_V: ${{ matrix.gcc_v }} |
16 | 18 |
|
17 | 19 | steps: |
18 | 20 | - name: Checkout code |
19 | | - uses: actions/checkout@v2 |
| 21 | + uses: actions/checkout@v3 |
20 | 22 | with: |
21 | 23 | submodules: recursive |
22 | 24 |
|
23 | 25 | - name: Install Python |
24 | | - uses: actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc. |
| 26 | + uses: actions/setup-python@v4 # Use pip to install latest CMake, & FORD/Jin2For, etc. |
25 | 27 | with: |
26 | 28 | python-version: ${{ matrix.python-version }} |
27 | 29 |
|
28 | 30 | - name: Setup Graphviz |
29 | 31 | uses: ts-graphviz/setup-graphviz@v1 |
30 | 32 |
|
31 | 33 | - name: Setup Fortran Package Manager |
32 | | - uses: fortran-lang/setup-fpm@v3 |
| 34 | + uses: fortran-lang/setup-fpm@v5 |
33 | 35 | with: |
34 | 36 | github-token: ${{ secrets.GITHUB_TOKEN }} |
35 | 37 |
|
36 | 38 | - name: Install Python dependencies |
37 | 39 | if: contains( matrix.os, 'ubuntu') |
38 | 40 | run: | |
39 | 41 | python -m pip install --upgrade pip |
40 | | - pip install ford |
| 42 | + pip install ford numpy matplotlib |
41 | 43 | if [ -f requirements.txt ]; then pip install -r requirements.txt; fi |
42 | 44 |
|
43 | 45 | - name: Install GFortran Linux |
44 | 46 | if: contains( matrix.os, 'ubuntu') |
45 | 47 | run: | |
46 | 48 | sudo add-apt-repository ppa:ubuntu-toolchain-r/test |
47 | 49 | sudo apt-get update |
48 | | - sudo apt-get install -y gcc-${GCC_V} gfortran-${GCC_V} |
49 | | - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \ |
50 | | - --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \ |
51 | | - --slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V} |
52 | | -
|
53 | | - - name: Compile |
54 | | - run: fpm build --profile release |
| 50 | + sudo apt-get install -y gcc-${{ matrix.gcc_v }} gfortran-${{ matrix.gcc_v }} |
| 51 | + sudo update-alternatives \ |
| 52 | + --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc_v }} 100 \ |
| 53 | + --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ matrix.gcc_v }} \ |
| 54 | + --slave /usr/bin/gcov gcov /usr/bin/gcov-${{ matrix.gcc_v }} |
55 | 55 |
|
56 | 56 | - name: Run tests |
57 | | - run: fpm test |
| 57 | + run: fpm test --profile release |
58 | 58 |
|
59 | 59 | - name: Build documentation |
60 | 60 | run: ford ./daglib.md |
61 | 61 |
|
62 | 62 | - name: Deploy Documentation |
63 | 63 | if: github.ref == 'refs/heads/master' |
64 | | - uses: JamesIves/github-pages-deploy-action@4.1.4 |
| 64 | + uses: JamesIves/github-pages-deploy-action@v4.4.1 |
65 | 65 | with: |
66 | 66 | branch: gh-pages # The branch the action should deploy to. |
67 | 67 | folder: doc # The folder the action should deploy. |
0 commit comments