UnitTesting: fix artifact upload condition

This commit is contained in:
umarcor
2021-12-07 02:48:09 +01:00
parent c4e1cce63b
commit 00105dd491

View File

@@ -49,7 +49,7 @@ jobs:
python -m pytest -rA tests/unit $PYTEST_ARGS --color=yes python -m pytest -rA tests/unit $PYTEST_ARGS --color=yes
- name: 📤 Upload 'TestReport.xml' artifact - name: 📤 Upload 'TestReport.xml' artifact
if: inputs.TestReport == 'true' if: inputs.artifact != ''
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ inputs.artifact }}-${{ matrix.python }} name: ${{ inputs.artifact }}-${{ matrix.python }}