Fix challenges (#5561)

Fix challenges and CI

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
merwanehamadi
2023-10-05 10:59:50 -07:00
committed by GitHub
parent bef8203da2
commit bcb24c1a58
9 changed files with 19 additions and 20 deletions

View File

@@ -39,8 +39,7 @@ jobs:
- name: Run regression tests - name: Run regression tests
run: | run: |
./run agent start ${{ matrix.agent-name }} ./run agent start ${{ matrix.agent-name }} --setup
sleep 10
cd autogpts/${{ matrix.agent-name }} cd autogpts/${{ matrix.agent-name }}
poetry run agbenchmark --mock poetry run agbenchmark --mock
poetry run agbenchmark --test=WriteFile poetry run agbenchmark --test=WriteFile

View File

@@ -98,7 +98,7 @@ jobs:
- name: Run regression tests - name: Run regression tests
run: | run: |
./run agent start ${{ matrix.agent-name }} ./run agent start ${{ matrix.agent-name }} --setup
sleep 10 sleep 10
cd autogpts/${{ matrix.agent-name }} cd autogpts/${{ matrix.agent-name }}
set +e # Ignore non-zero exit codes and continue execution set +e # Ignore non-zero exit codes and continue execution

View File

@@ -16,7 +16,7 @@
"output.csv" "output.csv"
], ],
"should_contain": [ "should_contain": [
"Item, Color\nBanana, Yellow\nLeaf, Green\nSky, Blue\nSunflower, Yellow\nGrass, Green\nJeans, Blue\nLemon, Yellow\nTree, Green\nOcean, Blue\nDaisy, Yellow\nFern, Green" "Item,Color\nBanana,yellow\nLeaf,green\nSky,blue\nSunflower,yellow\nGrass,green\nJeans,blue\nLemon,yellow\nTree,green\nOcean,blue\nDaisy,yellow\nFern,green"
] ]
}, },
"info": { "info": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -301,7 +301,7 @@
"output.csv" "output.csv"
], ],
"should_contain": [ "should_contain": [
"Item, Color\nBanana, Yellow\nLeaf, Green\nSky, Blue\nSunflower, Yellow\nGrass, Green\nJeans, Blue\nLemon, Yellow\nTree, Green\nOcean, Blue\nDaisy, Yellow\nFern, Green" "Item,Color\nBanana,yellow\nLeaf,green\nSky,blue\nSunflower,yellow\nGrass,green\nJeans,blue\nLemon,yellow\nTree,green\nOcean,blue\nDaisy,yellow\nFern,green"
] ]
}, },
"info": { "info": {

File diff suppressed because one or more lines are too long

View File

@@ -289,7 +289,7 @@
] ]
}, },
"name": "TestRevenueRetrieval2", "name": "TestRevenueRetrieval2",
"task": "Write tesla's revenue every year since its creation into a .txt file. Use the US notation, with a precision rounded to the nearest million dollars (for instance, $31,578 billion)." "task": "Write tesla's revenue every year since its creation into a .txt file. Use the US notation, with a precision rounded to the nearest million dollars (for instance, $31,578 million)."
}, },
"id": "agbenchmark/generate_test.py::TestRevenueRetrieval2::test_method[challenge_data0]", "id": "agbenchmark/generate_test.py::TestRevenueRetrieval2::test_method[challenge_data0]",
"label": "RevenueRetrieval2", "label": "RevenueRetrieval2",
@@ -326,7 +326,7 @@
"side_effects": [] "side_effects": []
}, },
"name": "TestRevenueRetrieval", "name": "TestRevenueRetrieval",
"task": "Write tesla's exact revenue in 2022 into a .txt file. Use the US notation, with a precision rounded to the nearest million dollars (for instance, $31,578 billion)." "task": "Write tesla's exact revenue in 2022 into a .txt file. Use the US notation, with a precision rounded to the nearest million dollars (for instance, $31,578 million)."
}, },
"id": "agbenchmark/generate_test.py::TestRevenueRetrieval::test_method[challenge_data0]", "id": "agbenchmark/generate_test.py::TestRevenueRetrieval::test_method[challenge_data0]",
"label": "RevenueRetrieval", "label": "RevenueRetrieval",

File diff suppressed because one or more lines are too long