-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (42 loc) · 2.57 KB
/
report-direct-ann-term.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
on:
issues:
types: [opened] # change to "locked"?
jobs:
run-direct-report-on-issue:
if: contains(github.event.issue.labels.*.name, 'direct_ann_to_list_of_terms')
runs-on: ubuntu-22.04
name: Add issue comment
steps:
- name: Proof of env
env:
NUMBER: ${{ github.event.issue.number }}
run: |
echo A comment on issue $NUMBER
- name: Checkout this repo
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Run main annotation script
env:
NUMBER: ${{ github.event.issue.number }}
run: mkdir -p reports/$NUMBER && python3 ./scripts/annotation-review-report.py geneontology/go-annotation 7 --number $NUMBER --label direct_ann_to_list_of_terms --field annotation_class --output ./reports/$NUMBER --verbose
- name: Run extensions annotation script
env:
NUMBER: ${{ github.event.issue.number }}
run: mkdir -p reports/$NUMBER && python3 ./scripts/annotation-review-report.py geneontology/go-annotation 7 --number $NUMBER --label direct_ann_to_list_of_terms --field annotation_extension_class --output ./reports/$NUMBER --prefix extensions --verbose
- name: Run evidence_with annotation script
env:
NUMBER: ${{ github.event.issue.number }}
run: mkdir -p reports/$NUMBER && python3 ./scripts/annotation-review-report.py geneontology/go-annotation 7 --number $NUMBER --label direct_ann_to_list_of_terms --field evidence_with --output ./reports/$NUMBER --prefix ev_with --verbose
- name: Run mapping hit script
env:
NUMBER: ${{ github.event.issue.number }}
run: mkdir -p reports/$NUMBER && wget --recursive --no-parent http://snapshot.geneontology.org/ontology/external2go/ && rm -f snapshot.geneontology.org/ontology/external2go/README.md snapshot.geneontology.org/ontology/external2go/index.html && python3 ./scripts/mapping-report.py geneontology/go-annotation 7 --number $NUMBER --label direct_ann_to_list_of_terms --input ./snapshot.geneontology.org/ontology/external2go/ --output ./reports/$NUMBER --verbose
- name: Commit reports back to main
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: |
Reports at https://github.com/geneontology/go-annotation/tree/master/reports/${{ github.event.issue.number }} for issue https://github.com/geneontology/go-annotation/issues/${{ github.event.issue.number }}
commit_user_email: [email protected]
# Please do the dirty check, don't skip
skip_dirty_check: false