1
1
name : CI
2
- on : [push, pull_request ]
2
+ on : [push]
3
3
jobs :
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 :
@@ -16,28 +18,28 @@ jobs:
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
- - name : Set up Python 3.x
24
- uses : actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc.
25
+ - name : Install Python
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@v4
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 matplotlib 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
65
67
COV_DIR : build/coverage
66
68
67
69
- name : Upload coverage report
68
- uses : codecov/codecov-action@v2
70
+ uses : codecov/codecov-action@v3
69
71
with :
70
72
files : build/coverage/coverage.info
71
73
74
76
75
77
- name : Deploy Documentation
76
78
if : github.ref == 'refs/heads/master'
77
- uses :
JamesIves/[email protected] .0
79
+ uses : JamesIves/github-pages-deploy-action@v4. 4.1
78
80
with :
79
81
branch : gh-pages # The branch the action should deploy to.
80
82
folder : doc # The folder the action should deploy.
0 commit comments