mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-30 14:35:17 +02:00
Merge pull request #664 from garylin2099/dev
solve req conflict, add install script, and time cost stats
This commit is contained in:
commit
811c781dc7
4 changed files with 9 additions and 7 deletions
7
.github/workflows/unittest.yaml
vendored
7
.github/workflows/unittest.yaml
vendored
|
|
@ -19,14 +19,11 @@ jobs:
|
|||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e .[test]
|
||||
npm install -g @mermaid-js/mermaid-cli
|
||||
playwright install --with-deps chromium
|
||||
sh tests/scripts/run_install_deps.sh
|
||||
- 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
|
||||
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
|
||||
coverage report -m
|
||||
- name: Upload pytest test results
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ PyYAML==6.0.1
|
|||
setuptools==65.6.3
|
||||
tenacity==8.2.2
|
||||
tiktoken==0.5.2
|
||||
tqdm==4.64.0
|
||||
tqdm==4.65.0
|
||||
#unstructured[local-inference]
|
||||
# selenium>4
|
||||
# webdriver_manager<3.9
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -38,10 +38,11 @@ extras_require["test"] = [
|
|||
"pytest-cov",
|
||||
"pytest-mock",
|
||||
"pytest-html",
|
||||
"pytest-xdist",
|
||||
"connexion[uvicorn]~=3.0.5",
|
||||
"azure-cognitiveservices-speech~=1.31.0",
|
||||
"aioboto3~=11.3.0",
|
||||
"chromadb==0.3.23",
|
||||
"chromadb==0.4.14",
|
||||
"gradio==3.0.0",
|
||||
"grpcio-status==1.48.2",
|
||||
]
|
||||
|
|
|
|||
4
tests/scripts/run_install_deps.sh
Normal file
4
tests/scripts/run_install_deps.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
python -m pip install --upgrade pip
|
||||
pip install -e .[test]
|
||||
npm install -g @mermaid-js/mermaid-cli
|
||||
playwright install --with-deps chromium
|
||||
Loading…
Add table
Add a link
Reference in a new issue