-
Notifications
You must be signed in to change notification settings - Fork 5
84 lines (79 loc) · 3.02 KB
/
Copy pathc-cpp.yml
File metadata and controls
84 lines (79 loc) · 3.02 KB
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
75
76
77
78
79
80
81
82
83
84
name: github action build & CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
fold-grammars:
strategy:
matrix:
task: [default, shapes, pkiss, alishapes, palikiss, knotinframe]
runs-on: ubuntu-latest
steps:
# install gapcs
- name: update apt
run: sudo apt-get update
- name: Install dependencies
run: sudo apt-get install flex bison make libboost-all-dev libgsl-dev python3 python3-pip python3-biopython
- name: clone gapc
run: git clone -b master https://github.com/jlab/gapc.git $GITHUB_WORKSPACE/../gapc
- name: configure
run: cd $GITHUB_WORKSPACE/../gapc && ./configure
- name: make
run: cd $GITHUB_WORKSPACE/../gapc && make -j 2
- name: make install
run: cd $GITHUB_WORKSPACE/../gapc && sudo make install
- uses: actions/checkout@v3
- name: configure fold-grammars
run: |
cd $GITHUB_WORKSPACE/../fold-grammars
sed -i "s#bgapDir = '/vol/gapc/'#bgapDir = '/usr/local/'#" Misc/Applications/lib/foldGrammars/Settings.pm
sed -i "s#rootDir = '/vol/fold-grammars/src/'#rootDir = '`pwd`/'#" Misc/Applications/lib/foldGrammars/Settings.pm
- name: execute tests
run: |
cd $GITHUB_WORKSPACE/../fold-grammars
if [[ "${{ matrix.task }}" == "default" ]]; then pushd .; cd Misc/Test-Suite/GeorgStyle/; bash run.sh ../Truth; cd ../StefanStyle/; python test_cofold.py; popd; fi
pushd .
cd Misc/Test-Suite/StefanStyle/
perl runTests.pl 2 ${{ matrix.task }}
popd
RNAhybrid:
runs-on: ubuntu-latest
steps:
- name: update apt
run: |
sudo apt-get update
sudo add-apt-repository ppa:janssenlab/software
- name: Install dependencies
run: sudo apt-get install bellmansgapc samtools
- name: Setup for conda
uses: conda-incubator/setup-miniconda@v2
- uses: actions/checkout@v3
- name: compile binaries
run: cd Misc/Applications/RNAhybrid && make -j 2 all
- name: run RNAhybrid
run: |
pip install pynose click-option-group coverage
cd Misc/Applications/RNAhybrid/ && pynose . --with-doctest --with-coverage --cover-package=RNAhybrid
- name: convert coverage
run: |
cd Misc/Applications/RNAhybrid/ && coverage lcov
- name: send coverage report
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "Misc/Applications/RNAhybrid/coverage.lcov"
cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- run: pip install cpplint
- run: cpplint --recursive --counting 'detailed' --filter="-legal/copyright,-build/header_guard,-runtime/threadsafe_fn,-build/include_subdir,-runtime/explicit,-runtime/references" --extensions=hh Extensions/
- uses: vishnudxb/cancel-workflow@v1.2
if: failure()
with:
repo: jlab/fold-grammars
workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }}