Skip to content

Commit fdecbc8

Browse files
committed
CI updates
1 parent 2d1330f commit fdecbc8

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/CI.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,64 @@ jobs:
44

55
Build:
66
runs-on: ${{ matrix.os }}
7+
permissions:
8+
contents: write
79
strategy:
810
fail-fast: false
911
matrix:
1012
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]
1315
env:
1416
FC: gfortran-${{ matrix.gcc_v }}
1517
GCC_V: ${{ matrix.gcc_v }}
1618

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

2325
- 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.
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@v3
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 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
4446
if: contains( matrix.os, 'ubuntu')
4547
run: |
4648
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
4749
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 }}
5555
5656
- name: Run tests
57-
run: fpm test
57+
run: fpm test --profile release
5858

5959
- name: Build documentation
6060
run: ford ./daglib.md
6161

6262
- name: Deploy Documentation
6363
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
6565
with:
6666
branch: gh-pages # The branch the action should deploy to.
6767
folder: doc # The folder the action should deploy.

0 commit comments

Comments
 (0)