solve req conflict, add install script, and time cost stats

This commit is contained in:
yzlin 2024-01-02 14:18:55 +08:00
parent 83ee76cca7
commit 95fc01f96f
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