Skip to content

Commit f9733b1

Browse files
committed
CI and readme updates
1 parent 01a9c2a commit f9733b1

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,33 @@ jobs:
3939
if: contains( matrix.os, 'ubuntu')
4040
run: |
4141
python -m pip install --upgrade pip
42-
pip install ford numpy matplotlib
42+
pip install numpy matplotlib ford
4343
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4444
4545
- name: Install GFortran Linux
4646
if: contains( matrix.os, 'ubuntu')
4747
run: |
4848
sudo apt-get install lcov
49+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
50+
sudo apt-get update
51+
sudo apt-get install -y gcc-${{ matrix.gcc_v }} gfortran-${{ matrix.gcc_v }}
4952
sudo update-alternatives \
5053
--install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc_v }} 100 \
5154
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${{ matrix.gcc_v }} \
5255
--slave /usr/bin/gcov gcov /usr/bin/gcov-${{ matrix.gcc_v }}
5356
57+
# - name: Compile
58+
# run: fpm build --profile release
59+
5460
- name: Run tests
5561
run: fpm test --profile debug --flag -coverage
5662

5763
- name: Create coverage report
5864
run: |
5965
mkdir -p ${{ env.COV_DIR }}
60-
lcov --capture --initial --base-directory . --directory build/gfortran_*/ --output-file ${{ env.COV_DIR }}/coverage.base
61-
lcov --capture --base-directory . --directory build/gfortran_*/ --output-file ${{ env.COV_DIR }}/coverage.capture
66+
mv ./build/gfortran_*/*/* ${{ env.COV_DIR }}
67+
lcov --capture --initial --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.base
68+
lcov --capture --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.capture
6269
lcov --add-tracefile ${{ env.COV_DIR }}/coverage.base --add-tracefile ${{ env.COV_DIR }}/coverage.capture --output-file ${{ env.COV_DIR }}/coverage.info
6370
env:
6471
COV_DIR: build/coverage

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The latest API documentation can be found [here](https://jacobwilliams.github.io
1717

1818
The library can be compiled with recent versions the Intel Fortran Compiler and GFortran (and presumably any other Fortran compiler that supports modern standards).
1919

20-
A `fmp.toml` file is provided for compiling dvode with the [Fortran Package Manager](https://github.com/fortran-lang/fpm). For example, to build:
20+
A `fpm.toml` file is provided for compiling dvode with the [Fortran Package Manager](https://github.com/fortran-lang/fpm). For example, to build:
2121

2222
```
2323
fpm build --profile release

0 commit comments

Comments
 (0)