⬆️ scarb 2.8.2 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |