Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
doosuu committed Aug 20, 2024
1 parent c5ee42d commit 5b87255
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,32 @@ jobs:
fi
- name: unit test
id: unit_test
shell: bash
run: |
pytest --override-ini junit_family=xunit1 \
--junit-xml=./results/UnitTest/${{ matrix.component }}/junit.xml \
--cov . \
--cov-report=xml:results/CodeCoverage/${{ matrix.component }}/cobertura-coverage.xml \
--cov-branch \
components/extensions/${{ matrix.component }}/test/unit
TEST_DIR=components/extensions/${{ matrix.component }}/test/unit
if [ -e "${TEST_DIR}" ]; then
pytest --override-ini junit_family=xunit1 \
--junit-xml=./results/UnitTest/${{ matrix.component }}/junit.xml \
--cov . \
--cov-report=xml:results/CodeCoverage/${{ matrix.component }}/cobertura-coverage.xml \
--cov-branch \
${TEST_DIR}
echo "test_ran=true\n" >> $GITHUB_OUTPUT
fi
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
if: steps.unit_test.outputs.test_ran == true
with:
report_paths: ./results/UnitTest/${{ matrix.component }}/junit.xml
summary: true
update_check: true
annotate_only: true

- uses: irongut/[email protected]
if: steps.unit_test.outputs.test_ran == true
with:
filename: results/CodeCoverage/${{ matrix.component }}/cobertura-coverage.xml
badge: true
Expand All @@ -95,7 +102,8 @@ jobs:
indicators: true
output: both

- run: |
- if: steps.unit_test.outputs.test_ran == true
run: |
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
run-integration-tests:
Expand Down

0 comments on commit 5b87255

Please sign in to comment.