Skip to content

Commit

Permalink
ci: add cleanup to ingest-test
Browse files Browse the repository at this point in the history
  • Loading branch information
fjugipe committed Oct 18, 2024
1 parent 686653c commit 0d101cf
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ jobs:
ingest/test/output/pytest-coverage.txt
ingest/test/output/pytest.xml
- name: Cleanup
if: always()
run: just destroy

publish-test-results:
needs:
- test-datastore
Expand All @@ -146,38 +150,40 @@ jobs:
uses: actions/download-artifact@v4
with:
name: test-results-artifact
path: ./artifacts/test-results

- name: Comment coverage
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: api/test/output/pytest-coverage.txt
coverage-path-prefix: api/test/output/
pytest-coverage-path: ./artifacts/test-results/pytest-coverage.txt
coverage-path-prefix: ./artifacts/test-results/
title: API Unit Test Coverage Report
hide-badge: true
hide-report: false
create-new-comment: false
hide-comment: false
report-only-changed-files: false
remove-link-from-badge: false
junitxml-path: api/test/output/pytest.xml
junitxml-path: ./artifacts/test-results/pytest.xml
junitxml-title: API Unit Test Coverage Summary

- name: Download test-ingest results so that they can be published
uses: actions/download-artifact@v4
with:
name: ingest-test-results-artifact
path: ./artifacts/ingest-results

- name: Comment ingest coverage
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ingest/test/output/pytest-coverage.txt
coverage-path-prefix: ingest/test/output/
pytest-coverage-path: ./artifacts/ingest-results/pytest-coverage.txt
coverage-path-prefix: ./artifacts/ingest-results/
title: Ingest Unit Test Coverage Report
hide-badge: true
hide-report: false
create-new-comment: false
hide-comment: false
report-only-changed-files: false
remove-link-from-badge: false
junitxml-path: ingest/test/output/pytest.xml
junitxml-path: ./artifacts/ingest-results/pytest.xml
junitxml-title: Ingest Unit Test Coverage Summary

1 comment on commit 0d101cf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ingest Unit Test Coverage Report
FileStmtsMissCoverMissing
datastore_pb2.py594819%24–71
datastore_pb2_grpc.py422345%45–60, 101–103, 108–110, 115–117, 122–124, 128–152, 198, 215, 232, 249
setup.py550%1–15
api
   \_\_init\_\_.py00100% 
   api_metrics.py90100% 
   datastore.py473721%18–20, 27–76
   generate_standard_name.py990%1–20
   grpc_putter.py241346%16–39, 43–49
   ingest.py472743%35–39, 47–48, 55–83
   main.py42686%48–52, 62, 66
   messages.py241442%19–21, 28–47
   model.py1451292%66, 69, 90, 301, 312–315, 318, 339–340, 346
   send_mqtt.py342721%11–32, 36–48
   utilities.py12925%5–17, 21–22
TOTAL49923054% 

Ingest Unit Test Coverage Summary

Tests Skipped Failures Errors Time
16 0 💤 0 ❌ 0 🔥 1m 43s ⏱️

Please sign in to comment.