-
Notifications
You must be signed in to change notification settings - Fork 53
49 lines (43 loc) · 1.33 KB
/
main.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
name: CI
on: [push, pull_request, workflow_dispatch]
env:
MIN_COVERAGE_REQUIRED: 35
jobs:
test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Test outputs
run: |
python -m pip install .
python -m pip install coverage
bash run_test.sh
- name: Test with old biopython
run: |
python -m pip install biopython==1.79
bash run_test.sh
- name: Coverage
run: |
coverage report
test $(coverage report | grep TOTAL | awk '{ print $4 }' | tr -d "%") -ge $MIN_COVERAGE_REQUIRED
#test_oldbio:
# if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
# runs-on: ubuntu-latest
# timeout-minutes: 10
# defaults:
# run:
# shell: bash -l {0}
#
# steps:
# - uses: actions/checkout@v3
# - name: Test pipeline output
# run: |
# python -m pip install biopython==1.79
# python -m pip install coverage
# python -m pip install .
# bash ./run_test.sh