Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cb460fe

Browse files
committedFeb 23, 2022
Setup parallel jobs for tests + formatting check
1 parent da26af4 commit cb460fe

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed
 

‎.github/workflows/check_correctness.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,29 @@ jobs:
5353
eval $(opam env)
5454
make build
5555
56-
- name: Test interpreter
57-
run: |
58-
eval $(opam env)
59-
OPTIMIZE=0 make tests
60-
61-
- name: Test C backend
56+
format:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Check formatting
6260
run: |
63-
eval $(opam env)
64-
make test_c_backend
61+
dune build @fmt
6562
66-
- name: Test Python backend
67-
run: |
68-
eval $(opam env)
69-
make test_python_backend
63+
tests:
64+
runs-on: ubuntu-latest
65+
needs: build
66+
strategy:
67+
matrix:
68+
test: [test_c_backend, test_java_backend, test_python_backend]
69+
optimize: [1]
70+
include:
71+
- test: tests
72+
optimize: 0
7073

71-
- name: Test Java backend
74+
steps:
75+
- name: Test backend
76+
env:
77+
TEST: ${{ test }}
78+
OPTIMIZE: ${{ optimize }}
7279
run: |
7380
eval $(opam env)
74-
make test_java_backend
75-
76-
81+
OPTIMIZE=$OPTIMIZE make $TEST

0 commit comments

Comments
 (0)
Please sign in to comment.