mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-16 14:57:13 +03:00
Add clerk XML reports to Github
This commit is contained in:
parent
29cb1978e0
commit
e78ea378bd
23
.github/workflows/harness.yml
vendored
23
.github/workflows/harness.yml
vendored
@ -93,7 +93,18 @@ jobs:
|
|||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: cd /home/ocaml/catala && opam exec -- make tests
|
run: cd /home/ocaml/catala && opam exec -- make testsuite
|
||||||
|
- name: Generate test report
|
||||||
|
if: ${{ always() }}
|
||||||
|
run: |
|
||||||
|
cd /home/ocaml/catala
|
||||||
|
opam exec -- clerk report --xml _build/*@test _build/test-*/*@test >report.junit.xml
|
||||||
|
- name: Test Summary
|
||||||
|
uses: test-summary/action@v2
|
||||||
|
with:
|
||||||
|
paths: /home/ocaml/catala/report.junit.xml
|
||||||
|
if: ${{ always() }}
|
||||||
|
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
name: Build examples and generate artifacts
|
name: Build examples and generate artifacts
|
||||||
@ -130,6 +141,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd ~/catala-examples
|
cd ~/catala-examples
|
||||||
opam --cli=2.1 exec -- make all testsuite install
|
opam --cli=2.1 exec -- make all testsuite install
|
||||||
|
- name: Generate examples test report
|
||||||
|
if: ${{ always() }}
|
||||||
|
run: |
|
||||||
|
cd ~/catala-examples
|
||||||
|
opam exec -- clerk report --xml _build/*@test _build/test-*/*@test >report.junit.xml
|
||||||
|
- name: Test Summary
|
||||||
|
uses: test-summary/action@v2
|
||||||
|
with:
|
||||||
|
paths: /home/ocaml/catala-examples/report.junit.xml
|
||||||
|
if: ${{ always() }}
|
||||||
- name: Checkout french-law repo
|
- name: Checkout french-law repo
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/CatalaLang/french-law --depth 1 ~/french-law -b "${{ github.head_ref || github.ref_name }}" ||
|
git clone https://github.com/CatalaLang/french-law --depth 1 ~/french-law -b "${{ github.head_ref || github.ref_name }}" ||
|
||||||
|
1
Makefile
1
Makefile
@ -229,6 +229,7 @@ testsuite-base: .FORCE
|
|||||||
|
|
||||||
#> testsuite : Run interpreter tests over a selection of configurations
|
#> testsuite : Run interpreter tests over a selection of configurations
|
||||||
testsuite: unit-tests
|
testsuite: unit-tests
|
||||||
|
$(CLERK_TEST) doc
|
||||||
$(MAKE) testsuite-base
|
$(MAKE) testsuite-base
|
||||||
|
|
||||||
#> reset-tests : Update the expected test results from current run
|
#> reset-tests : Update the expected test results from current run
|
||||||
|
Loading…
Reference in New Issue
Block a user