mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 14:04:27 +01:00
Fix Auto-GPT CI cassette submodule
This commit is contained in:
14
.github/workflows/autogpt-ci.yml
vendored
14
.github/workflows/autogpt-ci.yml
vendored
@@ -5,19 +5,19 @@ on:
|
|||||||
branches: [ master, ci-test* ]
|
branches: [ master, ci-test* ]
|
||||||
paths:
|
paths:
|
||||||
- 'autogpts/autogpt/**'
|
- 'autogpts/autogpt/**'
|
||||||
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
|
- '!autogpts/autogpt/tests/vcr_cassettes'
|
||||||
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ stable, master, release-* ]
|
branches: [ stable, master, release-* ]
|
||||||
paths:
|
paths:
|
||||||
- 'autogpts/autogpt/**'
|
- 'autogpts/autogpt/**'
|
||||||
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
|
- '!autogpts/autogpt/tests/vcr_cassettes'
|
||||||
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
branches: [ master, release-*, ci-test* ]
|
branches: [ master, release-*, ci-test* ]
|
||||||
paths:
|
paths:
|
||||||
- 'autogpts/autogpt/**'
|
- 'autogpts/autogpt/**'
|
||||||
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
|
- '!autogpts/autogpt/tests/vcr_cassettes'
|
||||||
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -122,7 +122,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cassette_branch="${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.head.ref }}"
|
cassette_branch="${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.head.ref }}"
|
||||||
cassette_base_branch="${{ github.event.pull_request.base.ref }}"
|
cassette_base_branch="${{ github.event.pull_request.base.ref }}"
|
||||||
cd tests/Auto-GPT-test-cassettes
|
cd tests/vcr_cassettes
|
||||||
|
|
||||||
if ! git ls-remote --exit-code --heads origin $cassette_base_branch ; then
|
if ! git ls-remote --exit-code --heads origin $cassette_base_branch ; then
|
||||||
cassette_base_branch="master"
|
cassette_base_branch="master"
|
||||||
@@ -192,7 +192,7 @@ jobs:
|
|||||||
git config "$config_key" \
|
git config "$config_key" \
|
||||||
"Authorization: Basic $base64_pat"
|
"Authorization: Basic $base64_pat"
|
||||||
|
|
||||||
cd tests/Auto-GPT-test-cassettes
|
cd tests/vcr_cassettes
|
||||||
git config "$config_key" \
|
git config "$config_key" \
|
||||||
"Authorization: Basic $base64_pat"
|
"Authorization: Basic $base64_pat"
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ jobs:
|
|||||||
cassette_branch="${{ github.ref_name }}"
|
cassette_branch="${{ github.ref_name }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd tests/Auto-GPT-test-cassettes
|
cd tests/vcr_cassettes
|
||||||
# Commit & push changes to cassettes if any
|
# Commit & push changes to cassettes if any
|
||||||
if ! git diff --quiet; then
|
if ! git diff --quiet; then
|
||||||
git add .
|
git add .
|
||||||
@@ -231,7 +231,7 @@ jobs:
|
|||||||
git push origin HEAD:$cassette_branch
|
git push origin HEAD:$cassette_branch
|
||||||
if [ ! $is_pull_request ]; then
|
if [ ! $is_pull_request ]; then
|
||||||
cd ../..
|
cd ../..
|
||||||
git add tests/Auto-GPT-test-cassettes
|
git add tests/vcr_cassettes
|
||||||
git commit -m "Update cassette submodule"
|
git commit -m "Update cassette submodule"
|
||||||
git push origin HEAD:$cassette_branch
|
git push origin HEAD:$cassette_branch
|
||||||
fi
|
fi
|
||||||
|
|||||||
4
.github/workflows/autogpt-docker-ci.yml
vendored
4
.github/workflows/autogpt-docker-ci.yml
vendored
@@ -5,13 +5,13 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'autogpts/autogpt/**'
|
- 'autogpts/autogpt/**'
|
||||||
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
|
- '!autogpts/autogpt/tests/vcr_cassettes'
|
||||||
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, release-*, stable ]
|
branches: [ master, release-*, stable ]
|
||||||
paths:
|
paths:
|
||||||
- 'autogpts/autogpt/**'
|
- 'autogpts/autogpt/**'
|
||||||
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
|
- '!autogpts/autogpt/tests/vcr_cassettes'
|
||||||
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
- '!autogpts/autogpt/tests/challenges/current_score.json'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|||||||
4
.github/workflows/benchmarks.yml
vendored
4
.github/workflows/benchmarks.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run pytest with coverage
|
- name: Run pytest with coverage
|
||||||
run: |
|
run: |
|
||||||
rm -rf tests/Auto-GPT-test-cassettes
|
rm -rf tests/vcr_cassettes
|
||||||
pytest -n auto --record-mode=all ${{ matrix.config.task }}
|
pytest -n auto --record-mode=all ${{ matrix.config.task }}
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
@@ -70,4 +70,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: cassettes-${{ matrix.config.task-name }}
|
name: cassettes-${{ matrix.config.task-name }}
|
||||||
path: tests/Auto-GPT-test-cassettes/
|
path: tests/vcr_cassettes/
|
||||||
|
|||||||
2
.github/workflows/pr-label.yml
vendored
2
.github/workflows/pr-label.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ master, release-* ]
|
branches: [ master, release-* ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'autogpts/autogpt/tests/Auto-GPT-test-cassettes'
|
- 'autogpts/autogpt/tests/vcr_cassettes'
|
||||||
- 'autogpts/autogpt/tests/challenges/current_score.json'
|
- 'autogpts/autogpt/tests/challenges/current_score.json'
|
||||||
- 'benchmark/reports/**'
|
- 'benchmark/reports/**'
|
||||||
# So that the `dirtyLabel` is removed if conflicts are resolve
|
# So that the `dirtyLabel` is removed if conflicts are resolve
|
||||||
|
|||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "autogpts/autogpt/tests/vcr_cassettes"]
|
||||||
|
path = autogpts/autogpt/tests/vcr_cassettes
|
||||||
|
url = https://github.com/Significant-Gravitas/Auto-GPT-test-cassettes
|
||||||
2
autogpts/autogpt/.gitattributes
vendored
2
autogpts/autogpt/.gitattributes
vendored
@@ -1,5 +1,5 @@
|
|||||||
# Exclude VCR cassettes from stats
|
# Exclude VCR cassettes from stats
|
||||||
tests/Auto-GPT-test-cassettes/**/**.y*ml linguist-generated
|
tests/vcr_cassettes/**/**.y*ml linguist-generated
|
||||||
|
|
||||||
# Mark documentation as such
|
# Mark documentation as such
|
||||||
docs/**.md linguist-documentation
|
docs/**.md linguist-documentation
|
||||||
|
|||||||
4
autogpts/autogpt/.gitmodules
vendored
4
autogpts/autogpt/.gitmodules
vendored
@@ -1,4 +0,0 @@
|
|||||||
[submodule "tests/Auto-GPT-test-cassettes"]
|
|
||||||
path = tests/Auto-GPT-test-cassettes
|
|
||||||
url = https://github.com/Significant-Gravitas/Auto-GPT-test-cassettes
|
|
||||||
branch = master
|
|
||||||
@@ -47,7 +47,7 @@ def get_base_vcr_config(request):
|
|||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def vcr_cassette_dir(request):
|
def vcr_cassette_dir(request):
|
||||||
test_name = os.path.splitext(request.node.name)[0]
|
test_name = os.path.splitext(request.node.name)[0]
|
||||||
return os.path.join("tests/Auto-GPT-test-cassettes", test_name)
|
return os.path.join("tests/vcr_cassettes", test_name)
|
||||||
|
|
||||||
|
|
||||||
def patch_api_base(requestor: openai.api_requestor.APIRequestor):
|
def patch_api_base(requestor: openai.api_requestor.APIRequestor):
|
||||||
|
|||||||
1
autogpts/autogpt/tests/vcr_cassettes
Submodule
1
autogpts/autogpt/tests/vcr_cassettes
Submodule
Submodule autogpts/autogpt/tests/vcr_cassettes added at f839a09aa6
Reference in New Issue
Block a user