mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-29 02:46:24 +02:00
bugfix: unittest ci
This commit is contained in:
parent
f070b1a6c7
commit
ea87ad399f
1 changed files with 2 additions and 4 deletions
6
.github/workflows/unittest.yaml
vendored
6
.github/workflows/unittest.yaml
vendored
|
|
@ -20,14 +20,12 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e.
|
||||
pip install -e .[test]
|
||||
npm install -g @mermaid-js/mermaid-cli
|
||||
playwright install --with-deps chromium
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pip install pytest pytest-asyncio pytest-cov pytest-html
|
||||
export OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}" OPENAI_API_MODEL="gpt-3.5-turbo-1106"
|
||||
export PYPPETEER_EXECUTABLE_PATH="/usr/bin/chromium"
|
||||
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
|
||||
coverage report -m
|
||||
- name: Upload pytest test results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue