Skip to content

Commit

Permalink
Setup parallel jobs for tests + formatting check
Browse files Browse the repository at this point in the history
  • Loading branch information
Keryan-dev committed Feb 23, 2022
1 parent da26af4 commit 33bceaf
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/check_correctness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,30 @@ jobs:
eval $(opam env)
make build
- name: Test interpreter
run: |
eval $(opam env)
OPTIMIZE=0 make tests
- name: Test C backend
format:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check formatting
run: |
eval $(opam env)
make test_c_backend
dune build @fmt
- name: Test Python backend
run: |
eval $(opam env)
make test_python_backend
tests:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
test: ["test_c_backend", "test_java_backend", "test_python_backend"]
optimize: [1]
include:
- test: "tests"
optimize: 0

- name: Test Java backend
steps:
- name: Test backend
env:
TEST: ${{ matrix.test }}
OPTIMIZE: ${{ matrix.optimize }}
run: |
eval $(opam env)
make test_java_backend
OPTIMIZE=$OPTIMIZE make $TEST

0 comments on commit 33bceaf

Please sign in to comment.