Skip to content

Commit 62662bb

Browse files
committed
enabled CI
also added ford and vscode files
1 parent 261e551 commit 62662bb

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed

.github/workflows/CI.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
5+
Build:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest]
11+
gcc_v: [9] # Version of GFortran we want to use.
12+
python-version: [3.7]
13+
env:
14+
FC: gfortran-${{ matrix.gcc_v }}
15+
GCC_V: ${{ matrix.gcc_v }}
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
with:
21+
submodules: recursive
22+
23+
- name: Set up Python 3.x
24+
uses: actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc.
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Setup Graphviz
29+
uses: ts-graphviz/setup-graphviz@v1
30+
31+
- name: Setup Fortran Package Manager
32+
uses: fortran-lang/setup-fpm@v3
33+
with:
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Install Python dependencies
37+
if: contains( matrix.os, 'ubuntu')
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install numpy matplotlib ford
41+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
42+
43+
- name: Install GFortran Linux
44+
if: contains( matrix.os, 'ubuntu')
45+
run: |
46+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
47+
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
55+
56+
- name: Run test
57+
run: fpm test
58+
59+
- name: Build documentation
60+
run: ford ./minpack.md
61+
62+
- name: Deploy Documentation
63+
if: github.ref == 'refs/heads/master'
64+
uses: JamesIves/github-pages-deploy-action@4.1.0
65+
with:
66+
branch: gh-pages # The branch the action should deploy to.
67+
folder: doc # The folder the action should deploy.

minpack.code-workspace

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {
8+
"files.trimTrailingWhitespace": true,
9+
"editor.insertSpaces": true,
10+
"editor.tabSize": 4,
11+
"editor.trimAutoWhitespace": true
12+
}
13+
}

minpack.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
project: minpack
2+
project_dir: ./src
3+
output_dir: ./doc
4+
project_github: https://github.com/jacobwilliams/minpack
5+
summary: Modernized Minpack
6+
author: Jacob Williams
7+
github: https://github.com/jacobwilliams
8+
predocmark_alt: >
9+
predocmark: <
10+
docmark_alt:
11+
docmark: !
12+
display: public
13+
protected
14+
private
15+
source: true
16+
graph: true
17+
extra_mods: iso_fortran_env:https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fFORTRAN_005fENV.html
18+
19+
{!README.md!}

0 commit comments

Comments
 (0)