mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 09:46:24 +02:00
change unittest result format from junit to plain text
This commit is contained in:
parent
269750e616
commit
b0e20b8f01
2 changed files with 3 additions and 2 deletions
4
.github/workflows/unittest.yaml
vendored
4
.github/workflows/unittest.yaml
vendored
|
|
@ -23,14 +23,14 @@ jobs:
|
|||
- name: Test with pytest
|
||||
run: |
|
||||
echo "${{ secrets.METAGPT_KEY_YAML }}" | base64 -d > config/key.yaml
|
||||
pytest tests/ --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=./metagpt/ --cov-report=xml:cov.xml --cov-report=html:htmlcov --durations=20
|
||||
pytest tests/ --doctest-modules --cov=./metagpt/ --cov-report=xml:cov.xml --cov-report=html:htmlcov --durations=20 | tee unittest.txt
|
||||
coverage report -m
|
||||
- name: Upload pytest test results
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: pytest-results-${{ matrix.python-version }}
|
||||
path: |
|
||||
./junit/test-results-${{ matrix.python-version }}.xml
|
||||
./unittest.txt
|
||||
./htmlcov/
|
||||
retention-days: 3
|
||||
if: ${{ always() }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue