Skip to content

Commit a6f4e8b

Browse files
committed
.github/test-pr: parameterize tests by parallel amount
1 parent eefda04 commit a6f4e8b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test-pr.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,23 @@ jobs:
113113
- test-suite: 'test-prove-rules'
114114
test-args:
115115
timeout: 100
116+
parallel: 8
116117
- test-suite: 'test-prove-rules'
117118
test-args: '--use-booster-dev'
118119
timeout: 45
120+
parallel: 8
119121
- test-suite: 'test-prove-functional'
120122
test-args:
121123
timeout: 45
124+
parallel: 4
122125
- test-suite: 'test-prove-optimizations'
123126
test-args:
124127
timeout: 45
128+
parallel: 1
125129
- test-suite: 'test-prove-dss'
126130
test-args:
127131
timeout: 45
132+
parallel: 1
128133
timeout-minutes: ${{ matrix.timeout }}
129134
steps:
130135
- name: 'Check out code'
@@ -142,7 +147,7 @@ jobs:
142147
- name: 'Build distribution'
143148
run: docker exec -u github-user kevm-ci-haskell-${{ matrix.test-suite }}-${{ github.sha }} /bin/bash -c 'CXX=clang++-14 poetry -C kevm-pyk run kdist --verbose build -j`nproc` evm-semantics.plugin evm-semantics.haskell'
144149
- name: 'Prove Haskell'
145-
run: docker exec -u github-user kevm-ci-haskell-${{ matrix.test-suite }}-${{ github.sha }} /bin/bash -c "make ${{ matrix.test-suite }} PYTEST_ARGS='-vv ${{ matrix.test-args }}' PYTEST_PARALLEL=6"
150+
run: docker exec -u github-user kevm-ci-haskell-${{ matrix.test-suite }}-${{ github.sha }} /bin/bash -c "make ${{ matrix.test-suite }} PYTEST_ARGS='-vv ${{ matrix.test-args }}' PYTEST_PARALLEL=${{ matrix.parallel }}"
146151
- name: 'Tear down Docker'
147152
if: always()
148153
run: |

0 commit comments

Comments
 (0)