Skip to content

Commit

Permalink
parallelize ci workflows (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
matslina authored Feb 16, 2025
1 parent 3a19501 commit f9f43a0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/systest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/setup/
- name: Run system test with ${{ matrix.method }}
- uses: ./.github/actions/setup
- name: Run system tests with ${{ matrix.method }}
shell: bash
run: |
cd systest
Expand All @@ -29,15 +29,33 @@ jobs:

strategy:
matrix:
case: [empty comments endoffile basicops memoryhog factor]
case: [empty, comments, endoffile, basicops, memoryhog]
max-parallel: 10

steps:
- name: Checkout
uses: actions/checkout@v4
- uses: .github/actions/setup/
- name: Run system test with bash for case ${{ matrix.case }}
- uses: ./.github/actions/setup
- name: Run system test with bash, case ${{ matrix.case }}
shell: bash
run: |
cd systest
bash run.sh -m bash -c ${{ matrix.case }}
systest-bash-factor:
runs-on: ubuntu-latest

strategy:
matrix:
target: [lang_c, 386_linux, lang_go, lang_tcl, lang_ruby, lang_java, lang_rust]
max-parallel: 10

steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Run system test with bash, case factor, target ${{ matrix.target }}
shell: bash
run: |
cd systest
bash run.sh -m bash -c factor -t ${{ matrix.target }}
11 changes: 8 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
component: [386_linux, frontend, go, java, lang_c, ruby, rust, tcl]
max-parallel: 10

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: ./.github/actions/setup

- name: Run tests
run: make test
- name: Run test ${{ matrix.component }}
shell: bash
run: PYTHONPATH=test python test/${{ matrix.component }}_test.py

0 comments on commit f9f43a0

Please sign in to comment.