@@ -23,23 +23,35 @@ jobs:
2323 - name : Setup docker compose
2424 working-directory : trinity-${{ github.run_id }}/.github/workflows/docker
2525 run : |
26+ export UID=$(id -u)
27+ export GID=$(id -g)
2628 docker compose up -d
29+ sleep 5s
30+
31+ - name : Check ray status
32+ working-directory : trinity-${{ github.run_id }}/.github/workflows/docker
33+ run : |
34+ docker compose exec trinity-node-1 ray status
35+ docker compose exec trinity-node-2 ray status
2736
2837 - name : Run unittest
2938 working-directory : trinity-${{ github.run_id }}/.github/workflows/docker
3039 run : |
31- docker compose exec trinity-node-1 pytest tests --ignore=tests/data --junitxml=pytest.xml
40+ docker compose exec trinity-node-1 pytest tests --ignore=tests/data --ctrf report.json
3241 continue-on-error : true
3342
3443 - name : Upload test results
3544 uses : actions/upload-artifact@v4
3645 with :
3746 name : pytest-results
38- path : trinity-${{ github.run_id }}/pytest.xml
47+ path : trinity-${{ github.run_id }}/report.json
3948
40- - name : Pytest coverage comment
41- uses : MishaKav/pytest-coverage-comment@main
49+ - name : Publish Test Report
50+ uses : ctrf-io/github-test-reporter@v1
4251 with :
43- junitxml-title : Unittest Result Summary
44- junitxml-path : trinity-${{ github.run_id }}/pytest.xml
52+ report-path : trinity-${{ github.run_id }}/report.json
53+ pull-request-report : true
54+ env :
55+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56+ if : always()
4557# TODO: run data tests after the dependency conflict is resolved
0 commit comments