From 76fe29c9b121a0010a0f24b5cca5ac706683e3c3 Mon Sep 17 00:00:00 2001 From: Hendrik Tews Date: Mon, 22 Feb 2021 23:00:41 +0100 Subject: protect uses of coq-callcoq Uses of coq-callcoq need to correctly handle nil as result for the case that coq-callcoq fails. Additionally, add a regression test. Fixes #551 --- .github/workflows/test.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 199c3539..74191a97 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -131,6 +131,7 @@ jobs: runs-on: ubuntu-latest strategy: + # change to selected versions of coq-emacs docker containers matrix: coq_version: - '8.9' @@ -174,3 +175,50 @@ jobs: sudo chown -R coq:coq ./ci make -C ci/compile-tests test endGroup + + simple-tests: + runs-on: ubuntu-latest + + strategy: + # change to selected versions of coq-emacs docker containers + matrix: + coq_version: + - '8.9' + - '8.10' + - '8.11' + ocaml_version: + - minimal + max-parallel: 6 + # don't cancel all in-progress jobs if one matrix job fails: + fail-fast: false + + steps: + - uses: actions/checkout@v2 + + - name: Add ert problem matcher + run: echo "::add-matcher::.github/ert.json" + + - uses: coq-community/docker-coq-action@v1 + id: docker-coq-action + with: + opam_file: 'dummy.opam' + coq_version: ${{ matrix.coq_version }} + ocaml_version: ${{ matrix.ocaml_version }} + custom_script: | + startGroup Print opam config + opam config list; opam repo list; opam list + endGroup + startGroup Install emacs + sudo apt-get update -y -q + sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -q --no-install-recommends emacs + endGroup + startGroup other relevant configuration + getconf _NPROCESSORS_ONLN + emacs --version + coqc --version + ocaml --version + endGroup + startGroup Run tests + sudo chown -R coq:coq ./ci + make -C ci/simple-tests all + endGroup -- cgit v1.2.3