Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified the end-to-end pipeline, along with the related calling functions and the SELA README documentation. #1625

Closed
wants to merge 1,698 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1698 commits
Select commit Hold shift + click to select a range
1589a04
clarify prediction saving prompt
cyzus Sep 28, 2024
91c2729
Merge pull request #1486 from IcarusAegis/add_token
better629 Sep 29, 2024
f7dd8c9
update close-source latest model usage
better629 Sep 29, 2024
50cdecf
simplify code
better629 Sep 29, 2024
325e452
support o1-series
better629 Sep 29, 2024
bdba23e
Merge pull request #1488 from better629/tokens
geekan Sep 29, 2024
788e42e
update model list
cyzus Sep 30, 2024
d8a5a9c
chore: update st_role.py
eltociear Oct 3, 2024
b5981d2
1
kithib Oct 8, 2024
d595a3c
1
Oct 8, 2024
ad8a989
1
Oct 8, 2024
c061e4e
Update README.md
kithib Oct 8, 2024
f2326c9
1
Oct 8, 2024
2a19c17
1
Oct 9, 2024
51c2413
Merge remote-tracking branch 'origin/main'
Oct 9, 2024
4a50895
1
Oct 9, 2024
27332d1
Update README.md
kithib Oct 9, 2024
573e9b6
Merge branch 'improve-multimodal' into 'expo'
garylin2099 Oct 10, 2024
8b79c6c
1
Oct 10, 2024
0c16c32
Merge remote-tracking branch 'origin/main'
Oct 10, 2024
f80ebc4
1. add role level timeout 限制是1000s
cyzus Oct 10, 2024
2fc8f20
can change timeout through data.yaml
cyzus Oct 10, 2024
eb460d3
make timeout as argument
cyzus Oct 10, 2024
9f4eba7
add scripts
cyzus Oct 10, 2024
c023a23
fix dashscope high version problem
better629 Oct 10, 2024
e1c2683
删除图片
cyzus Oct 11, 2024
cdfb413
去掉role装饰器
cyzus Oct 11, 2024
9c54113
make sure image task starting from datapreprocessing
cyzus Oct 11, 2024
ae12d73
remove dependency
cyzus Oct 11, 2024
b12cd6a
Merge pull request #1496 from better629/tokens
geekan Oct 11, 2024
8263105
Merge pull request #1490 from eltociear/patch-2
geekan Oct 11, 2024
1538661
Merge pull request #1459 from geekan/fixbug/1455
geekan Oct 11, 2024
be5100a
Merge pull request #1460 from iorisa/fixbug/qianfan_timeout
geekan Oct 11, 2024
5be77df
Merge pull request #1452 from iorisa/feature/README.md
geekan Oct 11, 2024
56e7a08
insight pool is now able to dynamically increase
cyzus Oct 11, 2024
f7374c0
rename analysis pool to insight pool
cyzus Oct 11, 2024
a7efa27
rm
femto Oct 11, 2024
cb8fcb9
Merge pull request #1465 from MorpheusI0/feature/support_for_open_webui
geekan Oct 11, 2024
2a23806
Merge pull request #1440 from femto/rm_sk_agent
geekan Oct 11, 2024
5afa7f0
chore: 代码格式化
voidking Oct 11, 2024
4c55a97
Merge pull request #1499 from voidking/main
geekan Oct 11, 2024
eda9322
1. dynamically add insight
cyzus Oct 11, 2024
61bb774
fix #687
shenchucheng Oct 11, 2024
45f102c
Merge pull request #1500 from geekan/fix-serialize-error
geekan Oct 11, 2024
3a57060
1. add eval_func for sela and compatibility to others
cyzus Oct 12, 2024
9221fb7
add readme in french language
TitanSage02 Oct 13, 2024
5205898
update to integrate link for french version
TitanSage02 Oct 13, 2024
d4970f2
update readme_fr
TitanSage02 Oct 13, 2024
ebf95ab
-
TitanSage02 Oct 13, 2024
ca12ff0
bugfix: resolve incorrect URL redirections
TitanSage02 Oct 13, 2024
e6a2dc8
docs: add French version of README
TitanSage02 Oct 13, 2024
8a792fb
Update README_FR.md
TitanSage02 Oct 14, 2024
a91003a
disable submission
cyzus Oct 14, 2024
eecbfb5
Fixing README redict from README_CN and README_JP
Codezy93 Oct 14, 2024
1d4a845
支持跑通mle bench
cyzus Oct 14, 2024
4b1a616
Added inf param refs; Added Llama 3.2 model IDs; Removed titan-tg1-la…
JGalego Oct 14, 2024
47be4f5
Commented out legacy Llama 2, smaller Llama 3 and Mistral 7B Instruct…
JGalego Oct 14, 2024
7cb307a
Merge branch 'prepare-for-opensource' into 'expo'
garylin2099 Oct 15, 2024
07800be
allow datasets to be prepared by users
cyzus Oct 15, 2024
d179982
allow special-instruction for mle-bench
cyzus Oct 15, 2024
0166834
fix special instruction bug
cyzus Oct 15, 2024
02b4f0a
add timout to mlebench readme instruction
cyzus Oct 15, 2024
541f8a1
fix path bug
cyzus Oct 15, 2024
32d416b
Merge pull request #1457 from Jacksonxhx/milvus
geekan Oct 15, 2024
bcb6b89
Fixes:#1507 ; Update Transformers Link in README ; Fixed
himanshumahajan138 Oct 15, 2024
7794b99
fix: role timeout not passing in
cyzus Oct 16, 2024
989a3b4
allow max depth passing in
cyzus Oct 16, 2024
eae3514
Update AFlow
didiforgithub Oct 16, 2024
bb229f2
Update AFlolw
didiforgithub Oct 16, 2024
eea9486
Update Eval
didiforgithub Oct 16, 2024
df7a04d
output dev set score
cyzus Oct 16, 2024
eab9b84
Change HotpotQA
MoshiQAQ Oct 16, 2024
390b65f
Update HotpotQA
MoshiQAQ Oct 16, 2024
859ee3d
fix test()
MoshiQAQ Oct 16, 2024
cea3473
Update evaluator.py
MoshiQAQ Oct 16, 2024
38daf24
rename task if custom_data_dir is used
cyzus Oct 17, 2024
a46f575
clean up input argument
cyzus Oct 17, 2024
0f01c07
add tree visualization script and function
cyzus Oct 17, 2024
1d22466
change dir for tree fig
cyzus Oct 17, 2024
6646983
fix visualization bug
cyzus Oct 17, 2024
510136a
allowing whether to show instructions
cyzus Oct 17, 2024
06710fb
fix typo in readme.md
cyzus Oct 17, 2024
6aedc4a
Update AFlow
didiforgithub Oct 17, 2024
7c6edce
Update config2.yaml
didiforgithub Oct 17, 2024
d99054a
Merge branch 'main' into main
better629 Oct 17, 2024
852fbc5
automatically update args.low_is_better for mle-bench
cyzus Oct 17, 2024
6f437bb
automatically change low_is_better for rmse
cyzus Oct 17, 2024
de42e32
automatically update low_is_better for our task
cyzus Oct 17, 2024
1915d19
update aide readme
limafang Oct 17, 2024
2762c12
Merge branch 'fix-aide-readme' into 'expo'
garylin2099 Oct 17, 2024
358a97e
modify prompt
cyzus Oct 18, 2024
2b788b2
Update Annotation to English, And Update Operator.json
didiforgithub Oct 18, 2024
ebcacdd
Update print error
didiforgithub Oct 18, 2024
7a38165
add seed
cyzus Oct 18, 2024
3646feb
Merge remote-tracking branch 'origin/expo' into insight-pool-improve
cyzus Oct 18, 2024
f97ad72
add task arg for tree visualization
cyzus Oct 18, 2024
2ce186c
Merge branch 'insight-pool-improve' into 'expo'
garylin2099 Oct 18, 2024
345d799
Merge remote-tracking branch 'origin/expo' into optimize-mle-bench-pr…
cyzus Oct 18, 2024
5eaa072
add an instruction to avoid splitting instruction being replaced
cyzus Oct 18, 2024
f070455
Merge branch 'expo' into 'sela'
garylin2099 Oct 18, 2024
e094e2a
update openai_api.py
better629 Oct 18, 2024
5d6fa7a
Update readme.md
didiforgithub Oct 18, 2024
17f3cd4
Refactor Evaluator
didiforgithub Oct 18, 2024
6ebf3c4
Update drop.py
MoshiQAQ Oct 19, 2024
478589e
Update action_node.py
MoshiQAQ Oct 19, 2024
8f34c74
Merge pull request #1450 from JGalego/feat/bedrock-update
geekan Oct 20, 2024
6041070
Merge pull request #1504 from Codezy93/main
geekan Oct 20, 2024
cca28df
Merge pull request #1509 from himanshumahajan138/issue-1507
geekan Oct 20, 2024
8387e28
Merge pull request #1311 from chenchun0629/main
geekan Oct 20, 2024
ac4eb30
删除codecov
voidking Oct 20, 2024
ae4e5d3
Merge pull request #1515 from voidking/main
geekan Oct 20, 2024
da2e0b8
Update README.md
PrathameshSPawar Oct 20, 2024
ade1068
Update Operator's code
didiforgithub Oct 21, 2024
5a58439
Merge pull request #1517 from PrathameshSPawar/patch-1
geekan Oct 21, 2024
efa00f8
Update
didiforgithub Oct 21, 2024
c194415
Update mbpp & math's eval
didiforgithub Oct 21, 2024
d304fc3
Merge branch 'optimize-mle-bench-prompt' into 'sela'
garylin2099 Oct 21, 2024
fe3fca5
Create download_data.py
MoshiQAQ Oct 21, 2024
f6e6e89
chore: 调整requirements.txt中的依赖版本,适配python3.9/3.10/3.11
voidking Oct 21, 2024
2dbf1db
Merge pull request #1524 from voidking/main
geekan Oct 21, 2024
d09c060
删除误提交的milvus_local.db
voidking Oct 21, 2024
048a56f
Merge pull request #1525 from voidking/main
geekan Oct 21, 2024
3a8fdc6
add visit order
garylin2099 Oct 21, 2024
4bed19b
Merge pull request #1526 from garylin2099/sela-lyz
garylin2099 Oct 21, 2024
2d1d7ca
Update Operator & Benchmark
didiforgithub Oct 21, 2024
23eec00
Update operator.py
didiforgithub Oct 21, 2024
d8c7174
Update HotpotQA's init round
didiforgithub Oct 21, 2024
35acb98
Update optimizer.py
didiforgithub Oct 21, 2024
65f9654
Merge branch 'main' into main
TitanSage02 Oct 21, 2024
828d187
change context_fill to xml_fill
didiforgithub Oct 22, 2024
66b5239
Update llm.py & handle exception
didiforgithub Oct 22, 2024
0b69ffe
Update download data.py and rm json files
didiforgithub Oct 22, 2024
fcc5e19
mv aflow from example to ext
didiforgithub Oct 22, 2024
5aa62b7
Update
didiforgithub Oct 22, 2024
e575b62
Resolve comment and modify readme
didiforgithub Oct 22, 2024
5775b20
Update Readme
didiforgithub Oct 22, 2024
2ccee33
Update Readme
didiforgithub Oct 22, 2024
462b7d9
Update README.md
didiforgithub Oct 22, 2024
8b209d4
Merge pull request #1503 from TitanSage02/main
geekan Oct 22, 2024
56d0af1
pre-commit modify
didiforgithub Oct 22, 2024
27e942c
update
didiforgithub Oct 22, 2024
8c7cde5
Transform print into logger.info & mv code sanitize to utils.py
didiforgithub Oct 22, 2024
344d87d
Update
didiforgithub Oct 22, 2024
4564b70
Update mbpp.py
didiforgithub Oct 22, 2024
7c5b29d
rename expo folder to sela
cyzus Oct 22, 2024
d2f90db
Update readme and better optimizer
didiforgithub Oct 23, 2024
39ae682
Fix jinyu's review and add reproduce's code in experiment folder
didiforgithub Oct 24, 2024
072839a
Final version
didiforgithub Oct 24, 2024
bbb9824
Update download_data.py
didiforgithub Oct 24, 2024
b43429e
Delete Unnecessary Part
didiforgithub Oct 24, 2024
ceccd66
Update pre-commit's error
didiforgithub Oct 24, 2024
b2dcd6a
Update README.md
didiforgithub Oct 24, 2024
ca3422b
Update README.md
didiforgithub Oct 24, 2024
17785ca
Update
didiforgithub Oct 24, 2024
e48f659
Update README.md
didiforgithub Oct 24, 2024
8a06c95
Update README.md
didiforgithub Oct 24, 2024
765244c
Update README.md
didiforgithub Oct 24, 2024
d9ad8fe
1
Oct 24, 2024
06c1915
Update README.md
didiforgithub Oct 25, 2024
38c825d
Delete unnecessary part & Update Optimize for better use
didiforgithub Oct 25, 2024
95bed6e
modify reproduce function
didiforgithub Oct 25, 2024
92e520d
Final Version
didiforgithub Oct 25, 2024
eb3d49d
move to ext/sela
cyzus Oct 25, 2024
a62ae88
update readme.md
cyzus Oct 25, 2024
7602978
rename aug to rs
cyzus Oct 25, 2024
4d1a6f4
rename classes and functions
cyzus Oct 25, 2024
ea699ca
1
Oct 27, 2024
a7fa56a
1
Oct 27, 2024
61492d9
add data type; fix instruction generation
cyzus Oct 28, 2024
9abb8db
edit-baseline-experimenter
cyzus Oct 28, 2024
e41f934
update readme
cyzus Oct 28, 2024
4c541c2
reorder import
cyzus Oct 28, 2024
3fefc48
fix ollama to add llava support
EvensXia Oct 28, 2024
6321b79
reoreder
cyzus Oct 28, 2024
cf03c5d
Merge pull request #1543 from cyzus/sela
garylin2099 Oct 28, 2024
1aac79c
identation on readme
cyzus Oct 28, 2024
7b81c8a
make context length configurable
seehi Oct 28, 2024
f0a3a3f
Update Latest Review
didiforgithub Oct 28, 2024
e0cbbf8
rename research assistant to experimenter
cyzus Oct 28, 2024
b97fa40
1
Oct 28, 2024
d5bd342
1
Oct 28, 2024
7146a7b
Merge pull request #1546 from seehi/feat-set-context-length
geekan Oct 28, 2024
4dc1a38
Merge pull request #1494 from kithib/main
geekan Oct 28, 2024
fdb8346
update ollama
EvensXia Oct 29, 2024
25299e1
change research assistant to experimenter
cyzus Oct 29, 2024
a5f33e2
update ollama
EvensXia Oct 29, 2024
37698b3
update readme - put baseline readme in /runner
cyzus Oct 29, 2024
df51f45
Merge pull request #1545 from cyzus/sela-readme
garylin2099 Oct 29, 2024
d01051a
Update for solving latest review.
didiforgithub Oct 29, 2024
322974a
fix for test
EvensXia Oct 29, 2024
7d3d15a
format
EvensXia Oct 29, 2024
c48d16d
fix embedding
EvensXia Oct 29, 2024
685d301
f
EvensXia Oct 29, 2024
dbfd37b
Merge pull request #1510 from didiforgithub/main
geekan Oct 29, 2024
bbb087b
Update Readme News & Update AFLOW's entrance.
didiforgithub Oct 29, 2024
1b5939f
Update README.md
didiforgithub Oct 29, 2024
beae28d
Update README.md
didiforgithub Oct 29, 2024
8a46f96
Merge pull request #1548 from didiforgithub/main
geekan Oct 29, 2024
187e512
fixup ollama_api chat prompt
EvensXia Oct 29, 2024
f2aa4e3
tested for embeddings/embed
EvensXia Oct 30, 2024
062b13f
fix embed
EvensXia Oct 30, 2024
2bca5c9
fix embedding output
EvensXia Oct 30, 2024
82dba4b
revert llm_vision
EvensXia Oct 30, 2024
e209e0e
fx
EvensXia Oct 30, 2024
9db0874
Merge pull request #1544 from EvensXia/fix_metagpt_from_evensxia
geekan Oct 30, 2024
ea13d7a
Fix Issue 1549 & Fix Claude Token Calculate Error.
didiforgithub Oct 30, 2024
6b8b9c8
Update token_counter.py
didiforgithub Oct 30, 2024
fd7feb5
Merge pull request #1552 from didiforgithub/main
geekan Oct 30, 2024
a01156d
Update utils.py
didiforgithub Oct 30, 2024
2077dd5
Merge pull request #1554 from didiforgithub/main
geekan Oct 30, 2024
74041bd
update readme intro
cyzus Oct 30, 2024
73d2358
update intro and citation
cyzus Oct 30, 2024
0a215a9
update readme
cyzus Oct 30, 2024
261a39d
remove autogluon models in gitignore
cyzus Oct 30, 2024
776ee44
remove mlebench
cyzus Oct 30, 2024
b710365
use google drive link
cyzus Oct 30, 2024
39027b6
Merge pull request #1556 from cyzus/sela-readme-intro
garylin2099 Oct 30, 2024
db19c88
Merge branch 'main' into sela
garylin2099 Oct 30, 2024
21d9c5a
Merge pull request #1514 from geekan/sela
geekan Oct 31, 2024
0c0cfe0
Update openai_api.py
zhaoweiguo Oct 31, 2024
8ced2e8
Update requirements.txt
zhaoweiguo Oct 31, 2024
0f27029
fix bug in multi llm
zhaoweiguo Oct 31, 2024
b5bb4d7
Merge pull request #1558 from zhaoweiguo/patch-1
geekan Oct 31, 2024
6d1ab98
FIX multiLLM bug
zhaoweiguo Nov 1, 2024
0e37450
Merge branch 'geekan:main' into patch-3
zhaoweiguo Nov 1, 2024
0443865
bugfix: #1547 Before calling serializeToString in mmdc_playwright.py,…
voidking Nov 1, 2024
3e626f4
Merge pull request #1564 from voidking/main
geekan Nov 1, 2024
ad30d2f
Merge pull request #1560 from zhaoweiguo/patch-2
geekan Nov 1, 2024
84ac87d
Merge branch 'main' into patch-3
zhaoweiguo Nov 4, 2024
5442d8f
pre-commit: make sure all files are clean
zhaoweiguo Nov 4, 2024
4255acc
Merge branch 'patch-3' of github.com:zhaoweiguo/MetaGPT into patch-3
zhaoweiguo Nov 4, 2024
59715c0
Merge pull request #1561 from zhaoweiguo/patch-3
geekan Nov 4, 2024
fb817a7
update aws claude token usage
better629 Nov 4, 2024
99c1f95
Merge pull request #1569 from better629/main
geekan Nov 4, 2024
f1565e2
fixbug: #1565 zhipuai model exception
Nov 4, 2024
f0a9042
Merge pull request #1570 from iorisa/fixbug/issue/1565
better629 Nov 4, 2024
bfe15e3
bugfix: If --run-tests is enabled, at least 8 rounds are required to …
voidking Nov 5, 2024
7464b9f
Add unittest for QaEngineer in software company workflow
voidking Nov 5, 2024
f11e671
Merge pull request #1573 from voidking/main
geekan Nov 6, 2024
7824c93
add sela example
limafang Nov 6, 2024
a1ad02a
Update action_node.py
didiforgithub Nov 8, 2024
532aede
Merge pull request #1578 from limafang/main
voidking Nov 9, 2024
e2cdcfb
Create AFLOW Inference Interface.
didiforgithub Nov 10, 2024
6fcb39a
Merge pull request #1587 from didiforgithub/main
geekan Nov 11, 2024
c0f6605
fix sela readme path error
limafang Nov 11, 2024
2b160f2
Merge pull request #1590 from limafang/main
geekan Nov 11, 2024
943c658
chore: 跑通单元测试
voidking Nov 12, 2024
6fbc2a9
Merge pull request #1614 from voidking/main
geekan Dec 2, 2024
e5140c9
add end2end
Trustccc Dec 4, 2024
54c70d4
Refactored the end-to-end code with the entry point being `run_sela.p…
Trustccc Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[run]
source =
./metagpt/
omit =
*/metagpt/ext/*
*/metagpt/environment/android_env/*
*/metagpt/environment/werewolf_env/*

4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
"image": "metagpt/metagpt:latest",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand All @@ -18,7 +18,7 @@
]
}
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"

Expand Down
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
*.jpg binary
*.gif binary
*.ico binary
*.jpeg binary
*.mp3 binary
*.mp4 binary
*.zip binary
*.bin binary


# Preserve original line endings for specific document files
*.doc text eol=crlf
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/show_me_the_bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ assignees: ''
- LLM type and model name:
- System version:
- Python version:
- MetaGPT version or branch:

<!-- Dependent packagess:the packages version cause the bug(like `pydantic 1.10.8`), installation method(like `pip install metagpt` or `pip install from source` or `run in docker`) -->

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-package.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build and upload python package

on:
workflow_dispatch:
release:
types: [created]
types: [created, published]

jobs:
deploy:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/fulltest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
sh tests/scripts/run_install_deps.sh
python -m pip install --upgrade pip
pip install -e .[test]
npm install -g @mermaid-js/mermaid-cli
playwright install --with-deps
- name: Run reverse proxy script for ssh service
if: contains(github.ref, '-debugger')
continue-on-error: true
Expand All @@ -54,7 +57,6 @@ jobs:
export ALLOW_OPENAI_API_CALL=0
echo "${{ secrets.METAGPT_KEY_YAML }}" | base64 -d > config/key.yaml
mkdir -p ~/.metagpt && echo "${{ secrets.METAGPT_CONFIG2_YAML }}" | base64 -d > ~/.metagpt/config2.yaml
echo "${{ secrets.SPARK_YAML }}" | base64 -d > ~/.metagpt/spark.yaml
pytest tests/ --doctest-modules --cov=./metagpt/ --cov-report=xml:cov.xml --cov-report=html:htmlcov --durations=20 | tee unittest.txt
- name: Show coverage report
run: |
Expand All @@ -77,8 +79,8 @@ jobs:
./tests/data/rsp_cache_new.json
retention-days: 3
if: ${{ always() }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ always() }}
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# if: ${{ always() }}
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
pre-commit-check:
runs-on: ubuntu-latest
environment: pre-commit
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close inactive issues
on:
schedule:
- cron: "5 0 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "inactive"
stale-issue-message: "This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add."
close-issue-message: "This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
18 changes: 8 additions & 10 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
sh tests/scripts/run_install_deps.sh
python -m pip install --upgrade pip
pip install -e .[test]
npm install -g @mermaid-js/mermaid-cli
playwright install --with-deps
- name: Test with pytest
run: |
export ALLOW_OPENAI_API_CALL=0
mkdir -p ~/.metagpt && cp tests/config2.yaml ~/.metagpt/config2.yaml && cp tests/spark.yaml ~/.metagpt/spark.yaml
pytest tests/ --doctest-modules --cov=./metagpt/ --cov-report=xml:cov.xml --cov-report=html:htmlcov --durations=20 | tee unittest.txt
mkdir -p ~/.metagpt && cp tests/config2.yaml ~/.metagpt/config2.yaml
pytest | tee unittest.txt
- name: Show coverage report
run: |
coverage report -m
- name: Show failed tests and overall summary
run: |
grep -E "FAILED tests|ERROR tests|[0-9]+ passed," unittest.txt
failed_count=$(grep -E "FAILED|ERROR" unittest.txt | wc -l)
if [[ "$failed_count" -gt 0 ]]; then
failed_count=$(grep -E "FAILED tests|ERROR tests" unittest.txt | wc -l | tr -d '[:space:]')
if [[ $failed_count -gt 0 ]]; then
echo "$failed_count failed lines found! Task failed."
exit 1
fi
Expand All @@ -54,8 +57,3 @@ jobs:
./tests/data/rsp_cache_new.json
retention-days: 3
if: ${{ always() }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ always() }}
19 changes: 16 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Python template

# Byte-compiled / optimized / DLL files
__pycache__/
__pycache__
*.py[cod]
*$py.class

Expand All @@ -27,6 +27,8 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
metagpt/tools/schemas/
examples/data/search_kb/*.json

# PyInstaller
# Usually these files are written by a python scripts from a template
Expand Down Expand Up @@ -151,9 +153,14 @@ allure-results
.vscode

key.yaml
data
/data/
data.ms
examples/nb/
examples/default__vector_store.json
examples/docstore.json
examples/graph_store.json
examples/image__vector_store.json
examples/index_store.json
.chroma
*~$*
workspace/*
Expand All @@ -168,6 +175,8 @@ output
tmp.png
.dependencies.json
tests/metagpt/utils/file_repo_git
tests/data/rsp_cache_new.json
tests/data/serdeser_storage/
*.tmp
*.png
htmlcov
Expand All @@ -178,4 +187,8 @@ cov.xml
*.faiss
*-structure.csv
*-structure.json
metagpt/tools/schemas
*.dot
.python-version
*.csv
metagpt/ext/sela/results/*
.chainlit/
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
recursive-include metagpt/ext/stanford_town/prompts *.txt
recursive-include metagpt/ext/stanford_town/static_dirs *.csv
recursive-include metagpt/ext/stanford_town/static_dirs *.json
Loading
Loading