Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions .github/workflows/agent-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
name: Agent Unittest
on:
pull_request: {}
push:
tags: [ "v/*" ]
on:
pull_request:
paths:
- agent/**
jobs:
test:
name: Run tests & display coverage
runs-on: ubuntu-latest
permissions:
# Gives the action the necessary permissions for publishing new
# comments in pull requests.
contents: read
issues: read
checks: write
pull-requests: write
# Gives the action the necessary permissions for pushing data to the
# python-coverage-comment-action branch, and for editing existing
# comments (to avoid publishing multiple comments in the same PR)
contents: write
steps:
- uses: actions/checkout@v4
- name: Install everything, run the tests, produce the .coverage file and coverage.xml report
run: |
cd agent
make test
make test
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
agent/*coverage.xml