-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from jacobwilliams/26-raw-strings
26 raw strings
- Loading branch information
Showing
6 changed files
with
242 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
|
||
Build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
gcc_v: [9] # Version of GFortran we want to use. | ||
env: | ||
FC: gfortran-${{ matrix.gcc_v }} | ||
GCC_V: ${{ matrix.gcc_v }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc. | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install other tools | ||
if: contains( matrix.os, 'ubuntu') | ||
run: | | ||
sudo apt-get install graphviz | ||
sudo -H pip install numpy | ||
sudo -H pip install ford && ford --version | ||
sudo -H pip install matplotlib | ||
- name: Install GFortran Linux | ||
if: contains( matrix.os, 'ubuntu') | ||
run: | | ||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
sudo apt-get update | ||
sudo apt-get install -y gcc-${GCC_V} gfortran-${GCC_V} | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \ | ||
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \ | ||
--slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V} | ||
- name: Compile | ||
run: | | ||
mkdir bin | ||
gfortran -O2 ./src/pyplot_module.f90 ./src/tests/test.f90 -o ./bin/test | ||
- name: Run test | ||
run: ./bin/test | ||
|
||
- name: Build documentation | ||
run: ford ./pyplot-fortran.md | ||
|
||
- name: Deploy Documentation | ||
if: github.ref == 'refs/heads/master' | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: doc # The folder the action should deploy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,6 @@ doc/ | |
*.exe | ||
*.out | ||
*.app | ||
|
||
# misc | ||
.DS_Store |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.