Skip to content

Commit

Permalink
ci: test parallel flags
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdoster authored Dec 25, 2023
1 parent 5a687bc commit 323cd6b
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["macos-latest","ubuntu-latest"]
os: ["macos-latest", "ubuntu-latest"]
fail-fast: false

steps:
Expand Down Expand Up @@ -67,21 +67,32 @@ jobs:
mkdir -p "$HOME/.local/bin" && echo "$HOME/.local/bin" >> $GITHUB_PATH
git clone --depth 1 https://github.com/zdharma-continuum/zunit; cd ./zunit
zsh -l -c './build.zsh' && sudo chmod u+x ./zunit && cp ./zunit "$HOME/.local/bin/"
- name: Run tests
shell: zsh {0}
run: |
command -p ls -1 ./tests/*zunit \
| parallel \
--use-cpus-instead-of-cores \
-N0 \
--jobs=2 \
--keep-order \
$HOME/.local/bin/zunit run
- name: "annexes"
run: zunit run tests/annexes.zunit
# - name: "annexes"
# run: zunit run tests/annexes.zunit

- name: "commands"
run: zunit run tests/commands.zunit
# - name: "commands"
# run: zunit run tests/commands.zunit

- name: "gh-r"
run: zunit run --fail-fast --verbose tests/gh-r.zunit
# - name: "gh-r"
# run: zunit run --fail-fast --verbose tests/gh-r.zunit

- name: "ices"
run: zunit run tests/ices.zunit
# - name: "ices"
# run: zunit run tests/ices.zunit

- name: "plugins"
run: zunit run tests/plugins.zunit
# - name: "plugins"
# run: zunit run tests/plugins.zunit

- name: "snippets"
run: zunit run tests/snippets.zunit
# - name: "snippets"
# run: zunit run tests/snippets.zunit

0 comments on commit 323cd6b

Please sign in to comment.