Skip to content

Commit

Permalink
Add an e2e CI step to upload html report (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzzha authored Mar 2, 2023
1 parent 1ebc24c commit 53deda3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,26 @@ jobs:
cp /config/*.yaml ./
if [[ "${mode}" == "full" ]]; then
pytest -v --html=report.html --self-contained-html SR_IOV_* common
echo "generated=true" >> $GITHUB_ENV
elif [[ ${#tests[@]} -ne 0 ]]; then
test_string="pytest -v --html=report.html --self-contained-html"
for testname in $(echo "${tests[@]}" | tr ' ' '\n' | sort -u); do
test_string="${test_string} ${testname}"
echo "Testing ${testname}"
done
${test_string}
echo "generated=true" >> $GITHUB_ENV
else
echo "no common code or test case code change - no e2e run"
echo "generated=false" >> $GITHUB_ENV
fi
- name: Upload HTML Artifact
if: ${{ env.generated == 'true' }}
uses: actions/upload-artifact@v3
with:
name: html-report
path: sriov/tests/report.html
retention-days: 3
- name: Display Status
run: echo "This job's status is ${{ job.status }}."
remove-label:
Expand Down

0 comments on commit 53deda3

Please sign in to comment.