Skip to content

Setup parallel jobs for CI tests #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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