ci: fix coverage xml for PR tests
This commit is contained in:
parent
51ec004718
commit
7917fa336a
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -123,7 +123,7 @@ jobs:
|
|||
echo "Running tests..."
|
||||
./ietf/manage.py test --settings=settings_sqlitetest --failfast
|
||||
|
||||
- name: Rename Coverage Results
|
||||
- name: Convert Coverage Results
|
||||
if: ${{ always() }}
|
||||
run: |
|
||||
coverage xml
|
||||
|
|
13
.github/workflows/ci-run-tests.yml
vendored
13
.github/workflows/ci-run-tests.yml
vendored
|
@ -44,17 +44,24 @@ jobs:
|
|||
echo "Running tests..."
|
||||
./ietf/manage.py test --settings=settings_sqlitetest --failfast
|
||||
|
||||
- name: Rename Coverage Results
|
||||
- name: Convert Coverage Results
|
||||
if: ${{ always() }}
|
||||
run: |
|
||||
coverage xml
|
||||
mv latest-coverage.json coverage.json
|
||||
|
||||
- name: Report Codacy Coverage
|
||||
uses: codacy/codacy-coverage-reporter-action@v1
|
||||
if: ${{ always() }}
|
||||
with:
|
||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
coverage-reports: coverage.xml
|
||||
|
||||
- name: Upload Coverage Results to Codecov
|
||||
uses: codecov/codecov-action@v2.1.0
|
||||
if: ${{ always() }}
|
||||
continue-on-error: true
|
||||
with:
|
||||
files: coverage.json
|
||||
files: coverage.xml
|
||||
|
||||
- name: Upload Coverage Results as Build Artifact
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
|
|
Loading…
Reference in a new issue