Merge pull request #664 from garylin2099/dev

solve req conflict, add install script, and time cost stats
This commit is contained in:
geekan 2024-01-02 15:38:04 +08:00 committed by GitHub
commit 811c781dc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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",
]

View 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