diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 8b302b3..04a8eec 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -28,7 +28,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 coverage + pip install flake8 coverage unittest-xml-reporting if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip install -e . - name: Lint with flake8 @@ -42,7 +42,7 @@ jobs: echo "PYTHONPATH=home/runner/work/entityshape" >> $GITHUB_ENV - name: Test with unittest run: | - coverage run -m unittest + coverage run -m xmlrunner coverage xml - name: SonarCloud Scan uses: SonarSource/sonarqube-scan-action@v6.0.0 @@ -54,3 +54,8 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} slug: Teester/entityshape + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }}