generated from bokulich-lab/q2-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 1.19 KB
/
q2-ci.yaml
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
name: "QIIME2: build and test"
on: issue_comment
jobs:
react:
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/q2ci') }}
runs-on: ubuntu-latest
steps:
- uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ github.event.comment.id }}
body: |
<br /> **Edit:** Running QIIME 2 CI...
reactions: "+1"
ci:
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/q2ci') }}
uses: qiime2/distributions/.github/workflows/lib-ci-dev.yaml@dev
with:
distro: shotgun
additional-reports-path: ./coverage.xml
additional-reports-name: coverage
coverage:
needs: [ci]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
name: 'Fetch coverage from builds'
with:
name: ${{ needs.ci.outputs.additional-reports-name }}
path: ${{ needs.ci.outputs.additional-reports-path }}
- uses: codecov/codecov-action@v4
name: 'Upload coverage'
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}