-
Notifications
You must be signed in to change notification settings - Fork 28
59 lines (50 loc) · 1.55 KB
/
prove_blocks.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
53
54
55
56
57
58
59
name: Sepolia integration tests
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: "true"
- name: "Install Rust"
uses: "actions-rs/toolchain@v1"
with:
toolchain: "stable"
- name: "Cache cargo"
id: cache-cargo
uses: "actions/cache@v4"
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
save-always: true
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Create and activate Python virtual environment
run: |
python3 -m venv venv
source venv/bin/activate
- name: Setup the tests
run: |
source venv/bin/activate
pip install cairo-lang==0.13.2 "sympy<1.13.0"
bash scripts/setup-tests.sh
- name: Prove Blocks
env:
PATHFINDER_RPC_URL: ${{ secrets.PATHFINDER_RPC_URL }}
run: |
cargo test --release --package prove_block --test prove_block -- test_prove_selected_blocks --show-output --ignored
- name: Class hashes
env:
PATHFINDER_RPC_URL: ${{ secrets.PATHFINDER_RPC_URL }}
run: |
cargo test --release --package prove_block --test hash_tests -- test_recompute_class_hash --show-output --ignored