-
Notifications
You must be signed in to change notification settings - Fork 5
74 lines (63 loc) · 1.88 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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