Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
which parallel # Verify installation
- name: Test code
run: test/run
env:
# Ubuntu runners ship GNU parallel, causing --tap + --jobs count mismatches.
# Force single-threaded on Linux; let macOS use parallel (installed above).
TEST_JOBS: ${{ runner.os == 'Linux' && '1' || 'detect' }}

build-docs:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion test/run
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ fi
# AND that it is the GNU version of `parallel`.
# If that is the case, try to guess the number of CPU cores,
# so we can run `bats` in parallel processing mode, which is a lot faster.
if command -v parallel &> /dev/null \
if [[ "${TEST_JOBS:-detect}" != "1" ]] \
&& command -v parallel &> /dev/null \
&& parallel -V &> /dev/null \
&& { parallel -V 2> /dev/null | grep -q '^GNU\>'; }; then
# Expect to run at least on a dual-core CPU; slightly degraded performance
Expand Down
Loading