-
Notifications
You must be signed in to change notification settings - Fork 110
89 lines (68 loc) · 3.1 KB
/
execute_nightly_tests.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# This workflow builds AUGUSTUS and executes the
# longrunning test cases
name: Execute AUGUSTUS longrunning test cases
on:
schedule:
# execute workflow daily at 23:30
- cron: '30 23 * * *'
env:
TOOLDIR: /data/tools
PERL5LIB: /data/eval
DB_USER: ${{ secrets.TEST_DB_USER }}
DB_PASSWD: ${{ secrets.TEST_DB_PASSWD }}
jobs:
check_latest_commit_in_db:
runs-on: [self-hosted, linux, default]
outputs:
commit: ${{ steps.step3.outputs.hash }}
steps:
- name: Check out repository
id: step1
uses: actions/checkout@v2
- name: Get latest commit in DB
id: step2
run: |
echo 'LATEST_COMMIT_IN_DB<<EOF' >> $GITHUB_ENV
./check_latest_commit_influx.py --dbname testresults --dbhost localhost --dbport 8086 --dbuser $DB_USER --dbpasswd $DB_PASSWD >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
working-directory: tests/longrunning/
- name: Set output
id: step3
run: echo '::set-output name=hash::${{ env.LATEST_COMMIT_IN_DB }}'
longrunning_test:
runs-on: [self-hosted, linux, default]
needs: check_latest_commit_in_db
# Only execute test cases if the last commit in db is different from the last commit on default branch
if: ${{ needs.check_latest_commit_in_db.outputs.commit != github.sha }}
# Maximum number of minutes to let a job run before GitHub automatically cancels it. Default: 360
timeout-minutes: 600
steps:
- name: Check out repository
uses: actions/checkout@v2
# Install required python packages
- name: Install python wget
run: pip3 install wget
- name: Install gitpython
run: pip3 install gitpython
- name: Install profiling tools
run: pip3 install psutil memory_profiler
- name: Build AUGUSTUS
run: make all
- name: Execute single genome test cases
run: ./test_single.py --evalDir /data/eval/ --jobs 8 --pathToGitRepo ../../../.git
working-directory: tests/longrunning/single_genome/
- name: Extract desired accuracy values (single genome test case)
run: ./extract_accuracy_values.py --path single_genome/output/eval
working-directory: tests/longrunning/
- name: Write to influxdb (single genome test case)
run: ./write_to_influx.py --dbname testresults --dbhost localhost --dbport 8086 --dbuser $DB_USER --dbpasswd $DB_PASSWD --pathToDataDir single_genome/output/ --mode single
working-directory: tests/longrunning/
- name: Execute cgp test case
run: ./executeTestCGP.py --chunks 27 30 47 54 57 80 86 101 118 --eval --augustusDir ../../../ --dataDir data --evalDir /data/eval --jobs 8 --pathToGitRepo ../../../.git
working-directory: tests/longrunning/cgp/
- name: Extract desired accuracy values (cgp test case)
run: ./extract_accuracy_values.py --path cgp/data/cgp12way/ACCURACY
working-directory: tests/longrunning/
- name: Write to influxdb (cgp test case)
run: ./write_to_influx.py --dbname testresults --dbhost localhost --dbport 8086 --dbuser $DB_USER --dbpasswd $DB_PASSWD --pathToDataDir cgp/data/cgp12way/ --mode cgp
working-directory: tests/longrunning/