-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (42 loc) · 1.25 KB
/
reference_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
name: Reference Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install Scarb
uses: asdf-vm/actions/install@v3
- name: Install dependencies
working-directory: tests/references/bdhke-nutshell
run: poetry install
- name: Run reference tests
run: |
./tests/references/reference_tests.sh
- name: Check test results
run: |
if grep -q "false" tests/references/target/results.json; then
echo "Some tests failed. Check the report for details."
exit 1
fi
- name: Upload test artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: |
tests/references/target/report.txt
tests/references/target/results.json
tests/references/target/cairo_output.log
tests/references/target/nutshell_output.log