Skip to content

Commit 4abf706

Browse files
committed
CI updates
1 parent dd3c796 commit 4abf706

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: CI
2-
on: [push, pull_request]
2+
on: [push]
33
jobs:
44

55
Build:
66
runs-on: ${{ matrix.os }}
7+
permissions:
8+
contents: write
79
strategy:
810
fail-fast: false
911
matrix:
@@ -16,28 +18,28 @@ jobs:
1618

1719
steps:
1820
- name: Checkout code
19-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2022
with:
2123
submodules: recursive
2224

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.
2527
with:
2628
python-version: ${{ matrix.python-version }}
2729

2830
- name: Setup Graphviz
2931
uses: ts-graphviz/setup-graphviz@v1
3032

3133
- name: Setup Fortran Package Manager
32-
uses: fortran-lang/setup-fpm@v4
34+
uses: fortran-lang/setup-fpm@v5
3335
with:
3436
github-token: ${{ secrets.GITHUB_TOKEN }}
3537

3638
- name: Install Python dependencies
3739
if: contains( matrix.os, 'ubuntu')
3840
run: |
3941
python -m pip install --upgrade pip
40-
pip install matplotlib ford
42+
pip install ford numpy matplotlib
4143
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4244
4345
- name: Install GFortran Linux
@@ -65,7 +67,7 @@ jobs:
6567
COV_DIR: build/coverage
6668

6769
- name: Upload coverage report
68-
uses: codecov/codecov-action@v2
70+
uses: codecov/codecov-action@v3
6971
with:
7072
files: build/coverage/coverage.info
7173

@@ -74,7 +76,7 @@ jobs:
7476

7577
- name: Deploy Documentation
7678
if: github.ref == 'refs/heads/master'
77-
uses: JamesIves/[email protected].0
79+
uses: JamesIves/github-pages-deploy-action@v4.4.1
7880
with:
7981
branch: gh-pages # The branch the action should deploy to.
8082
folder: doc # The folder the action should deploy.

0 commit comments

Comments
 (0)