forked from rems-project/asl-interpreter
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.22 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Test partial eval
on:
push:
branches:
- partial_eval
pull_request:
types: []
workflow_dispatch:
permissions:
contents: read
packages: read
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
# XXX using multi-line string will fail since \n is stuck to the end of the argument.
shell: "nix develop github:katrinafyi/pac-nix#ocamlPackages_pac_4_09.asli --impure --accept-flake-config --command bash {0}"
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: cachix/cachix-action@v14
with: { name: pac-nix }
- run: echo 'preparing nix shell environment'
# it will be nice to make this work, just in case we aslp adds new dependencies
# - uses: ocaml/setup-ocaml@v2
# with:
# ocaml-compiler: ocaml-system.4.09.1 # must match nix develop's ocaml version!
# - run: opam install . --deps-only --with-test
- run: dune build --profile release
- run: ./coverage.sh test
id: coverage
- name: Upload new coverage results
if: always()
uses: actions/upload-artifact@v3
with:
name: coverage-output-${{ github.run_id }}
path: ${{ steps.coverage.outputs.OUTPUT }}