mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 08:46:48 +02:00
add mockllm
This commit is contained in:
parent
80800d67d0
commit
9564975541
2 changed files with 72 additions and 8 deletions
3
.github/workflows/unittest.yaml
vendored
3
.github/workflows/unittest.yaml
vendored
|
|
@ -24,6 +24,8 @@ jobs:
|
|||
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
|
||||
- name: Show coverage report
|
||||
run: |
|
||||
coverage report -m
|
||||
- name: Upload pytest test results
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
@ -32,6 +34,7 @@ jobs:
|
|||
path: |
|
||||
./junit/test-results-${{ matrix.python-version }}.xml
|
||||
./htmlcov/
|
||||
./tests/data/rsp_cache_new.json
|
||||
retention-days: 3
|
||||
if: ${{ always() }}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue