Merge pull request #668 from voidking/pr

change unittest result format from junit to plain text
This commit is contained in:
garylin2099 2024-01-03 12:27:00 +08:00 committed by GitHub
commit 52c74adfb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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() }}

1
.gitignore vendored
View file

@ -52,6 +52,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
cover/
unittest.txt
# Translations
*.mo