Skip to content

Commit

Permalink
switch to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
szaghi committed Jul 4, 2022
1 parent c6a78d6 commit 7907da9
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 98 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
33 changes: 33 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test (alternative) Install Methods

on: push

jobs:
install:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: INSTALL SCRIPT + make
run: |
wget $(curl -s https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | grep 'browser_' | cut -d\" -f4 | grep -i install.sh)
chmod +x install.sh
./install.sh --download wget --build make
rm -rf *
- name: INSTALL SCRIPT + cmake
run: |
wget $(curl -s https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | grep 'browser_' | cut -d\" -f4 | grep -i install.sh)
chmod +x install.sh
./install.sh --download wget --build cmake
rm -rf *
- name: FPM
run: |
git clone https://github.com/$GITHUB_REPOSITORY ./
wget $(curl -s https://api.github.com/repos/fortran-lang/fpm/releases/latest | grep 'browser_' | cut -d\" -f4 | grep -i linux | grep -vi sha256) -O fpm
chmod +x fpm
./fpm build --profile release
73 changes: 0 additions & 73 deletions .travis.yml

This file was deleted.

9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<a name="top"></a>

# StringiFor [![GitHub tag](https://img.shields.io/github/tag/szaghi/StringiFor.svg)]()
# StringiFor [![GitHub tag](https://img.shields.io/github/tag/szaghi/StringiFor.svg)](https://github.com/szaghi/StringiFor/releases)

[![License](https://img.shields.io/badge/license-GNU%20GeneraL%20Public%20License%20v3%20,%20GPLv3-blue.svg)]()
[![License](https://img.shields.io/badge/license-BSD2-red.svg)]()
[![License](https://img.shields.io/badge/license-BSD3-red.svg)]()
[![License](https://img.shields.io/badge/license-MIT-red.svg)]()

[![Status](https://img.shields.io/badge/status-stable-brightgreen.svg)]()
[![Build Status](https://travis-ci.org/szaghi/StringiFor.svg?branch=master)](https://travis-ci.org/szaghi/StringiFor)
[![Coverage Status](https://img.shields.io/codecov/c/github/szaghi/StringiFor.svg)](http://codecov.io/github/szaghi/StringiFor?branch=master)
[![CI Status](https://github.com/szaghi/StringiFor/actions/workflows/ci.yml/badge.svg)](https://github.com/szaghi/StringiFor/actions)
[![Coverage Status](https://img.shields.io/codecov/c/github/szaghi/StringiFor.svg)](https://app.codecov.io/gh/szaghi/StringiFor)

### StringiFor, Strings Fortran Manipulator, yet another strings Fortran module
A KISS pure Fortran library providing astrings (class) manipulator for modern (2003+) Fortran projects.
Expand All @@ -23,9 +23,6 @@ A KISS pure Fortran library providing astrings (class) manipulator for modern (
#### Issues

[![GitHub issues](https://img.shields.io/github/issues/szaghi/StringiFor.svg)]()
[![Ready in backlog](https://badge.waffle.io/szaghi/StringiFor.png?label=ready&title=Ready)](https://waffle.io/szaghi/StringiFor)
[![In Progress](https://badge.waffle.io/szaghi/StringiFor.png?label=in%20progress&title=In%20Progress)](https://waffle.io/szaghi/StringiFor)
[![Open bugs](https://badge.waffle.io/szaghi/StringiFor.png?label=bug&title=Open%20Bugs)](https://waffle.io/szaghi/StringiFor)

#### Compiler Support

Expand Down
1 change: 0 additions & 1 deletion doc/README-PENF.md

This file was deleted.

22 changes: 6 additions & 16 deletions doc/main_page.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
---
project: StringiFor
src_dir: ../src/lib
src_dir: ../src/tests
src_dir: ../src/third_party/PENF/src/lib
src_dir: ../src/third_party/BeFoR64/src/lib

src_dir: ../src
exclude_dir: ../src/third_party
output_dir: html/publish/
project_github: https://github.com/szaghi/StringiFor
project_download: https://github.com/szaghi/StringiFor/releases/latest
summary: Strings Fortran Manipulator, yet another strings Fortran module
summary: FStrings Fortran Manipulator
author: Stefano Zaghi
github: https://github.com/szaghi
email: stefano.zaghi@gmail.com
md_extensions: markdown.extensions.toc(anchorlink=True)
markdown.extensions.smarty(smart_quotes=False)
md_extensions: markdown.extensions.toc
markdown.extensions.smarty
markdown.extensions.extra
markdown_checklist.extension
docmark: <
display: public
protected
private
source: true
warn: true
graph: true
sort: alpha
print_creation_date: true
creation_date: %Y-%m-%d %H:%M %z
extra_mods: iso_fortran_env:https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fFORTRAN_005fENV.html

{!../README.md!}
---
{!README-StringiFor.md!}
1 change: 0 additions & 1 deletion fobos
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ help = Perform coverage analysis
rule_1 = FoBiS.py doctests -mode tests-gnu-debug -coverage --exclude_from_doctests penf.F90 penf_b_size.F90 penf_stringify.F90 befor64_pack_data_m.F90 befor64.F90 -keep_volatile_doctests -doctests_preprocessor fpp
rule_2 = rm -f exe/obj/penf* exe/obj/befor64*
rule_3 = gcov -o exe/obj/ src/lib/stringifor*
rule_4 = rm -f *.gcov

[rule-makecoverage-analysis]
help = Perform coverage analysis and saving reports in markdown
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function projectdownload () {
git submodule update --init --recursive
cd -
elif [ "$DOWNLOAD" == "wget" ]; then
wget $(curl -s https://api.github.com/repos/$USERNAME/$PROJECT/releases/latest | grep 'browser_' | cut -d\" -f4)
wget $(curl -s https://api.github.com/repos/$USERNAME/$PROJECT/releases/latest | grep 'browser_' | cut -d\" -f4 | grep -i tar.gz)
tar xf $PROJECT.tar.gz
rm -f $PROJECT.tar.gz
fi
Expand Down

0 comments on commit 7907da9

Please sign in to comment.