-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (40 loc) · 1.35 KB
/
reusable-tests.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
47
48
49
50
51
52
# This workflow does static verification of the DafnyCore library
name: Dafny Core verification (Reusable)
on:
workflow_call:
inputs:
dafny-version:
required: true
type: string
jobs:
reusable_verification:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Dafny
uses: dafny-lang/[email protected]
with:
dafny-version: ${{ inputs.dafny-version }}
- name: Version information
run: |
dafny --version
- name: Upgrade outdated pip
run: python -m pip install --upgrade pip
- name: Install lit
run: pip install lit OutputCheck
- name: Set up JS dependencies
run: npm install bignumber.js
- name: Verify Code and Examples
run: |
lit --time-tests -v --param 'dafny_params=--log-format trx --log-format csv' .
- name: Generate Report
run: find . -name '*.csv' -print0 | xargs -0 --verbose dafny-reportgenerator summarize-csv-results --max-resource-count 40000000
- uses: actions/upload-artifact@v4 # upload test results
with:
name: verification-results-${{ inputs.dafny-version }}
path: '**/TestResults/*.trx'
if-no-files-found: error