Skip to content

Commit 103e26a

Browse files
committed
test parallel test execution
1 parent d3ec7df commit 103e26a

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

.github/workflows/rayjob_e2e_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ jobs:
127127
set -euo pipefail
128128
pip install poetry
129129
poetry install --with test,docs
130-
echo "Running RayJob e2e tests..."
131-
poetry run pytest -v -s ./tests/e2e/rayjob/rayjob_lifecycled_cluster_test.py > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output_rayjob.log 2>&1
130+
echo "Running RayJob e2e tests in parallel..."
131+
poetry run pytest -v -s -n auto ./tests/e2e/rayjob/rayjob_lifecycled_cluster_test.py > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output_rayjob.log 2>&1
132132
133133
- name: Switch to kind-cluster context to print logs
134134
if: always() && steps.deploy.outcome == 'success'

poetry.lock

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pytest = "7.4.0"
5757
coverage = "7.6.4"
5858
pytest-mock = "3.11.1"
5959
pytest-timeout = "2.3.1"
60+
pytest-xdist = "^3.3.1"
6061
jupyterlab = "4.3.1"
6162

6263

0 commit comments

Comments
 (0)