This commit is contained in:
yzlin 2024-01-03 12:51:25 +08:00
commit 41cc9ceab6
5 changed files with 9 additions and 6 deletions

View file

@ -23,7 +23,7 @@ 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
- name: Show coverage report
run: |
coverage report -m
@ -32,7 +32,7 @@ jobs:
with:
name: pytest-results-${{ matrix.python-version }}
path: |
./junit/test-results-${{ matrix.python-version }}.xml
./unittest.txt
./htmlcov/
./tests/data/rsp_cache_new.json
retention-days: 3