Speed up CI (#4930)

* Match requests in cassette by hash

* Strip requests more extensively for VCR

* Sort JSON keys on cassette save

* Strip max_tokens from cassettes

* Improve logging in retry decorator

* Raise when quota exceeded

* Clean up @retry_api

* Fix @retry_api

* Remove dead tests/vcr/openai_filter.py

* Add debug logging to execute_python_file

* Make Docker CI pass
This commit is contained in:
Reinier van der Leer
2023-07-10 17:26:13 +02:00
committed by GitHub
parent 2b56996a27
commit 5e39dd1d26
8 changed files with 110 additions and 114 deletions

View File

@@ -148,8 +148,8 @@ jobs:
- name: Run pytest with coverage
run: |
pytest -v --cov=autogpt --cov-branch --cov-report term-missing --cov-report xml \
--numprocesses=4 --durations=10 \
pytest -vv --cov=autogpt --cov-branch --cov-report term-missing --cov-report xml \
--numprocesses=logical --durations=10 \
tests/unit tests/integration tests/challenges
python tests/challenges/utils/build_current_score.py
env:
@@ -247,7 +247,7 @@ jobs:
gh api repos/$REPO/issues/$PR_NUMBER/comments -X POST -F body="You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged."
fi
- name: Upload logs as artifact
- name: Upload logs to artifact
if: always()
uses: actions/upload-artifact@v3
with: