Skip to content

Commit 72ee760

Browse files
committed
add auto commenter
1 parent 2ea45db commit 72ee760

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/docker/docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3'
21
services:
32
trinity-node-1:
43
image: trinity-rft:latest-unittest

.github/workflows/unittest.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,18 @@ jobs:
2727
- name: Run unittest
2828
working-directory: trinity-${{ github.run_id }}/.github/workflows/docker
2929
run: |
30-
docker compose exec trinity-node-1 pytest tests --ignore=tests/data
30+
docker compose exec trinity-node-1 pytest tests --ignore=tests/data --junitxml=pytest.xml
31+
continue-on-error: true
32+
33+
- name: Upload test results
34+
uses: actions/upload-artifact@v2
35+
with:
36+
name: pytest-results
37+
path: trinity-${{ github.run_id }}/pytest.xml
38+
39+
- name: Pytest coverage comment
40+
uses: MishaKav/pytest-coverage-comment@main
41+
with:
42+
junitxml-title: Unittest Result Summary
43+
junitxml-path: trinity-${{ github.run_id }}/pytest.xml
3144
# TODO: run data tests after the dependency conflict is resolved

0 commit comments

Comments
 (0)