diff --git a/.github/workflows/docker_ui_workflow.yml b/.github/workflows/docker_ui_workflow.yml index 70b602e5..68e79b46 100644 --- a/.github/workflows/docker_ui_workflow.yml +++ b/.github/workflows/docker_ui_workflow.yml @@ -76,6 +76,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Python + id: setup_python uses: actions/setup-python@v5 with: python-version: "3.9" @@ -100,10 +101,12 @@ jobs: run: sleep 30 - name: Setup dependencies + id: setup_dependencies run: | sh install.sh - name: Run All Tests + if: steps.setup_dependencies.outcome == 'success' run: | env source $HOME/.bp-venv/bin/activate @@ -197,7 +200,7 @@ jobs: BASE_URL="${{ github.event.inputs.baseurl }}" fi - number_of_threads=1 + concurrent_thread=3 if [[ "${{ github.event.inputs.browser }}" == "chrome" ]]; then BROWSER=./configs/docker_chrome.json @@ -217,7 +220,7 @@ jobs: --variables "$BROWSER" \ --reruns 1 --reruns-delay 5 \ --tags="$TAGS" --base-url="$BASE_URL" --html=report.html \ - --self-contained-html -n 3 + --self-contained-html -n "${{ concurrent_thread }}" - name: Docker Container Stop run: | diff --git a/.github/workflows/ui_workflow.yml b/.github/workflows/ui_workflow.yml index 68e3bc28..c776d12a 100644 --- a/.github/workflows/ui_workflow.yml +++ b/.github/workflows/ui_workflow.yml @@ -279,7 +279,7 @@ jobs: BASE_URL="${{ github.event.inputs.baseurl }}" fi - number_of_threads=1 + concurrent_thread=2 if [[ "${{ github.event.inputs.browser }}" == "chrome" && "${{ github.event.inputs.os }}" == "window" ]]; then BROWSER=./configs/win_chrome.json @@ -308,7 +308,7 @@ jobs: --capability headless False \ --reruns 1 --reruns-delay 5 \ --tags="$TAGS" --base-url="$BASE_URL" --html=report.html \ - --self-contained-html -n 2 + --self-contained-html -n ${{ concurrent_thread }} - name: BrowserStackLocal Stop uses: browserstack/github-actions/setup-local@master