Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run all tests in CI in parallel #1490

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
timeout_minutes: 60
shell: bash
command: |
JOBS=20
JOBS=50
export CTEST_PARALLEL_LEVEL=$JOBS
export CTEST_OUTPUT_ON_FAILURE=1

Expand All @@ -155,6 +155,7 @@ jobs:
sudo python3 ../test-export/test-export.py shared
else
cmake --build . --target verify
ctest --output-on-failure -j $JOBS
fi

- uses: actions/upload-artifact@v1
Expand Down Expand Up @@ -220,7 +221,7 @@ jobs:
timeout_minutes: 60
shell: bash
command: |
JOBS=20
JOBS=50

cd dist
archive=$(echo *.tar.gz)
Expand Down Expand Up @@ -355,7 +356,7 @@ jobs:
timeout_minutes: 60
shell: powershell
command: |
$EVENT_TESTS_PARALLEL=1
$EVENT_TESTS_PARALLEL=50

cd build

Expand Down Expand Up @@ -425,7 +426,7 @@ jobs:
timeout_minutes: 60
shell: powershell
command: |
$env:EVENT_TESTS_PARALLEL=1
$env:EVENT_TESTS_PARALLEL=50

$script='
export PATH="/mingw64/bin:/usr/bin:/bin:/usr/local/bin:/opt/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:$PATH"
Expand Down Expand Up @@ -598,7 +599,7 @@ jobs:
timeout_minutes: 60
shell: bash
command: |
JOBS=1
JOBS=50
export CTEST_PARALLEL_LEVEL=$JOBS
export CTEST_OUTPUT_ON_FAILURE=1

Expand Down Expand Up @@ -658,7 +659,7 @@ jobs:
timeout_minutes: 60
shell: bash
command: |
JOBS=1
JOBS=50
cd build
make -j $JOBS verify

Expand Down Expand Up @@ -745,7 +746,7 @@ jobs:
command: |
ssh freebsd sh <<EOF
cd $GITHUB_WORKSPACE
JOBS=1
JOBS=50
export CTEST_PARALLEL_LEVEL=$JOBS
export CTEST_OUTPUT_ON_FAILURE=1
cd build
Expand Down Expand Up @@ -806,7 +807,7 @@ jobs:
command: |
ssh freebsd sh <<EOF
cd $GITHUB_WORKSPACE
JOBS=1
JOBS=50
cd build
make verify
EOF
Expand Down Expand Up @@ -900,7 +901,7 @@ jobs:
command: |
ssh openbsd sh <<EOF
cd $GITHUB_WORKSPACE
JOBS=1
JOBS=50
export CTEST_PARALLEL_LEVEL=$JOBS
export CTEST_OUTPUT_ON_FAILURE=1
cd build
Expand Down Expand Up @@ -964,7 +965,7 @@ jobs:
command: |
ssh openbsd sh <<EOF
cd $GITHUB_WORKSPACE
JOBS=1
JOBS=50
cd build
make verify
EOF
Expand Down
Loading