Merge pull request #109 from jvdp1/combi #37
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
name: CI | |
on: push | |
jobs: | |
test-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: PREPARE SYSTEM | |
run: | | |
python --version | |
gfortran --version | |
gcov --version | |
sudo apt install graphviz | |
pip install --upgrade markdown | |
pip install --upgrade markdown-include | |
pip install --upgrade python-markdown-math | |
pip install --upgrade toposort | |
pip install --upgrade jinja2 | |
pip install --upgrade pygments | |
pip install --upgrade beautifulsoup4 | |
pip install --upgrade graphviz | |
pip install --upgrade tqdm | |
pip install --upgrade importlib-metadata | |
pip install --upgrade ford && ford --version | |
pip install --upgrade FoBiS.py && FoBiS.py --version | |
- name: CHECKOUT | |
id: checkout | |
run: | | |
git clone --recursive https://github.com/$GITHUB_REPOSITORY ./ | |
git log -n 1 | |
tag=`git tag | tail -n 1` | |
echo "RELEASE=$tag" >> $GITHUB_ENV | |
- name: MAKE TAR | |
run: | | |
echo "release version:" ${{ env.RELEASE }} | |
FoBiS.py rule -ex maketar | |
ls *.tar.gz | |
- name: DEPLOY ASSET | |
if: ${{ !env.ACT }} | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: ${{ env.RELEASE }} | |
prerelease: false | |
title: ${{ env.RELEASE }} | |
files: | | |
*.tar.gz | |
./scripts/install.sh | |
- name: MAKE COVERAGE | |
run: | | |
FoBiS.py rule -ex makecoverage | |
- name: UPLOAD COVERAGE to CODECOV | |
if: ${{ !env.ACT }} | |
uses: codecov/codecov-action@v3 | |
- name: MAKE DOC | |
run: | | |
FoBiS.py rule -ex makedoc | |
- name: PUSH DOC to GH Pages | |
if: ${{ !env.ACT }} | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: doc/html |