Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 - rust hints init #11

Merged
merged 25 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 37 additions & 34 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,40 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Specify the Python version you need
# - name: Cache Python environment
# uses: actions/cache@v3
# with:
# path: |
# ~/.cache/pip
# venv
# key: ${{ runner.os }}-python-${{ hashFiles('**/requirements.txt') }}
# restore-keys: |
# ${{ runner.os }}-python-
- name: Install Dependencies
run: |
make setup

- name: Check python formatting
run: source venv/bin/activate && ./tools/make/python_format_check.sh
- name: Check cairo Formatting
run: |
source venv/bin/activate && ./tools/make/cairo_format_check.sh
- name: Compile cairo files
run: source venv/bin/activate && make build
- name: Run Cairo tests
env:
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }}
RPC_URL: ${{ secrets.RPC_URL }}
run: source ./tools/make/cairo_tests.sh
- name: Run MPT tests
run: source ./tools/make/fuzzer.sh tests/fuzzing/mpt.cairo --ci
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install Dependencies
run: |
make setup

- name: Check python formatting
run: source venv/bin/activate && ./tools/make/python_format_check.sh

- name: Check cairo Formatting
run: |
source venv/bin/activate && ./tools/make/cairo_format_check.sh

- name: Check rust Formatting
run: |
cargo fmt --check

- name: Compile cairo files
run: source venv/bin/activate && make build

- name: Run cairo tests
env:
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }}
RPC_URL: ${{ secrets.RPC_URL }}
run: source ./tools/make/cairo_tests.sh

- name: Run cairo_vm hints tests
run: cargo test --release -- --show-output

- name: Run mpt tests
run: source ./tools/make/fuzzer.sh tests/fuzzing/mpt.cairo --ci
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ src/.DS_Store
solidity-verifier/lib/*
*.log

!tests/fuzzing/fixtures/*.json
!tests/fuzzing/fixtures/*.json

target
Loading
Loading