Skip to content

Commit dd9edd5

Browse files
committed
feat(agent/ci): add coverage tracking step to agent ci workflow
1 parent b80d6bd commit dd9edd5

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/agent-ci.yaml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
name: Agent Unittest
2-
on:
3-
pull_request: {}
4-
push:
5-
tags: [ "v/*" ]
2+
on:
3+
pull_request:
4+
paths:
5+
- agent/**
66
jobs:
77
test:
88
name: Run tests & display coverage
99
runs-on: ubuntu-latest
1010
permissions:
11-
# Gives the action the necessary permissions for publishing new
12-
# comments in pull requests.
11+
contents: read
12+
issues: read
13+
checks: write
1314
pull-requests: write
14-
# Gives the action the necessary permissions for pushing data to the
15-
# python-coverage-comment-action branch, and for editing existing
16-
# comments (to avoid publishing multiple comments in the same PR)
17-
contents: write
1815
steps:
1916
- uses: actions/checkout@v4
2017
- name: Install everything, run the tests, produce the .coverage file and coverage.xml report
2118
run: |
2219
cd agent
23-
make test
20+
make test
21+
- name: Publish Test Results
22+
uses: EnricoMi/publish-unit-test-result-action@v2
23+
if: always()
24+
with:
25+
files: |
26+
agent/coverage.xml

0 commit comments

Comments
 (0)