Skip to content

Commit 7b6f8c1

Browse files
committed
Setup parallel jobs for tests + formatting check
1 parent da26af4 commit 7b6f8c1

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

.github/workflows/check_correctness.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,30 @@ 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+
needs: build
59+
steps:
60+
- name: Check formatting
6261
run: |
63-
eval $(opam env)
64-
make test_c_backend
62+
dune build @fmt
6563
66-
- name: Test Python backend
67-
run: |
68-
eval $(opam env)
69-
make test_python_backend
64+
tests:
65+
runs-on: ubuntu-latest
66+
needs: build
67+
strategy:
68+
matrix:
69+
test: ["test_c_backend", "test_java_backend", "test_python_backend"]
70+
optimize: ["1"]
71+
include:
72+
- test: "tests"
73+
optimize: "0"
7074

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

0 commit comments

Comments
 (0)