Integrate pytest-xdist Plugin for Parallel and Concurrent Testing (#3870)
* Adds pytest-parallel dependencies * Implement pytest-parallel for faster tests * Uses pytest-xdist * Auto number of workers processes * Update ci.yml --------- Co-authored-by: Nicholas Tindle <nick@ntindle.com>pull/2799/head^2
parent
8f3119621c
commit
2513178980
|
@ -71,7 +71,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run unittest tests with coverage
|
- name: Run unittest tests with coverage
|
||||||
run: |
|
run: |
|
||||||
pytest --cov=autogpt --cov-report term-missing --cov-branch --cov-report xml --cov-report term
|
pytest -n auto --cov=autogpt --cov-report term-missing --cov-branch --cov-report xml --cov-report term
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ jobs:
|
||||||
set +e
|
set +e
|
||||||
test_output=$(
|
test_output=$(
|
||||||
docker run --env CI --env OPENAI_API_KEY --entrypoint python ${{ env.IMAGE_NAME }} -m \
|
docker run --env CI --env OPENAI_API_KEY --entrypoint python ${{ env.IMAGE_NAME }} -m \
|
||||||
pytest --cov=autogpt --cov-report term-missing --cov-branch --cov-report xml --cov-report term 2>&1
|
pytest -n auto --cov=autogpt --cov-report term-missing --cov-branch --cov-report xml --cov-report term 2>&1
|
||||||
)
|
)
|
||||||
test_failure=$?
|
test_failure=$?
|
||||||
|
|
||||||
|
|
|
@ -53,3 +53,4 @@ pytest-integration
|
||||||
pytest-mock
|
pytest-mock
|
||||||
vcrpy
|
vcrpy
|
||||||
pytest-recording
|
pytest-recording
|
||||||
|
pytest-xdist
|
Loading…
Reference in New Issue