add mockllm

This commit is contained in:
yzlin 2024-01-02 23:07:50 +08:00
parent 80800d67d0
commit 9564975541
2 changed files with 72 additions and 8 deletions

View file

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