Skip to content

Commit

Permalink
fix: run example tests parallally
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Aug 19, 2024
1 parent 3a14439 commit e689f57
Show file tree
Hide file tree
Showing 3 changed files with 310 additions and 280 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
package:
[
autogen,
camel,
claude,
crew_ai,
griptape,
julep,
langchain,
llamaindex,
lyzr,
openai,
praisonai,
langgraph,
phidata,
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
Expand All @@ -36,10 +52,9 @@ jobs:
sudo apt-get autoclean
python -m pip install --upgrade pip pipenv pytest
ls -1 plugins | awk '$0="plugins/"$0"/"' | xargs -L1 pipenv run pip3 install
pipenv install
pipenv run pip3 install '.[all]'
pipenv run pip install 'numpy<2'
pipenv run composio apps update
CI=false COMPOSIO_BASE_URL=https://backend.composio.dev/api pipenv run pytest -vv tests/test_example.py
python -m pip install plugins/${{matrix.package}}
python -m pip install '.[all]'
python -m pip install 'numpy<2' python-dotenv
python -m pip composio apps update
CI=false COMPOSIO_BASE_URL=https://backend.composio.dev/api PLUGIN_TO_TEST=${{matrix.package}} python -m pytest -vv tests/test_example.py
Loading

0 comments on commit e689f57

Please sign in to comment.