From 436941d77f976e1dc244d8251baf2ba797497bed Mon Sep 17 00:00:00 2001 From: Mike Shriver Date: Tue, 24 Aug 2021 10:26:41 -0400 Subject: [PATCH] Add xdist collection to PR workflow --- .github/workflows/pull_request.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d8ded87d882..0af7e58e5f9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -48,6 +48,12 @@ jobs: pytest --collect-only --disable-pytest-warnings -m pre_upgrade tests/upgrades/ pytest --collect-only --disable-pytest-warnings -m post_upgrade tests/upgrades/ + - name: Collect Tests with xdist + run: | + pytest --collect-only --disable-pytest-warnings -n 2 tests/foreman/ tests/robottelo/ + pytest --collect-only --disable-pytest-warnings -n 2 -m pre_upgrade tests/upgrades/ + pytest --collect-only --disable-pytest-warnings -n 2 -m post_upgrade tests/upgrades/ + - name: Test Robottelo Coverage run: pytest --cov --cov-config=.coveragerc --cov-report=xml tests/robottelo