|
18 | 18 | cairo_programs/**/*.json |
19 | 19 | !cairo_programs/manually_compiled/* |
20 | 20 | cairo_programs/cairo-1-programs/bitwise.sierra |
| 21 | + vm/src/tests/cairo_test_suite/**/*.json |
21 | 22 | TEST_COLLECT_COVERAGE: 1 |
22 | 23 | PROPTEST_CASES: 100 |
23 | 24 |
|
|
46 | 47 | - cairo_bench_programs |
47 | 48 | - cairo_proof_programs |
48 | 49 | - cairo_test_programs |
| 50 | + - cairo_test_suite_programs |
49 | 51 | - cairo_1_test_contracts |
50 | 52 | - cairo_2_test_contracts |
51 | 53 | name: Build Cairo programs |
|
66 | 68 | id: cache-programs |
67 | 69 | with: |
68 | 70 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
69 | | - key: ${{ matrix.program-target }}-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 71 | + key: ${{ matrix.program-target }}-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
70 | 72 |
|
71 | 73 | # This is not pretty, but we need `make` to see the compiled programs are |
72 | 74 | # actually newer than the sources, otherwise it will try to rebuild them |
@@ -120,37 +122,43 @@ jobs: |
120 | 122 | uses: actions/cache/restore@v3 |
121 | 123 | with: |
122 | 124 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
123 | | - key: cairo_test_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 125 | + key: cairo_test_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
124 | 126 | fail-on-cache-miss: true |
125 | 127 | - name: Fetch proof programs |
126 | 128 | uses: actions/cache/restore@v3 |
127 | 129 | with: |
128 | 130 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
129 | | - key: cairo_proof_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 131 | + key: cairo_proof_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
130 | 132 | fail-on-cache-miss: true |
131 | 133 | - name: Fetch bench programs |
132 | 134 | uses: actions/cache/restore@v3 |
133 | 135 | with: |
134 | 136 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
135 | | - key: cairo_bench_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 137 | + key: cairo_bench_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 138 | + fail-on-cache-miss: true |
| 139 | + - name: Fetch cairo test suite programs |
| 140 | + uses: actions/cache/restore@v3 |
| 141 | + with: |
| 142 | + path: ${{ env.CAIRO_PROGRAMS_PATH }} |
| 143 | + key: cairo_test_suite_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
136 | 144 | fail-on-cache-miss: true |
137 | 145 | - name: Fetch test contracts (Cairo 1) |
138 | 146 | uses: actions/cache/restore@v3 |
139 | 147 | with: |
140 | 148 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
141 | | - key: cairo_1_test_contracts-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 149 | + key: cairo_1_test_contracts-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
142 | 150 | fail-on-cache-miss: true |
143 | 151 | - name: Fetch test contracts (Cairo 2) |
144 | 152 | uses: actions/cache/restore@v3 |
145 | 153 | with: |
146 | 154 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
147 | | - key: cairo_2_test_contracts-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 155 | + key: cairo_2_test_contracts-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
148 | 156 | fail-on-cache-miss: true |
149 | 157 | - name: Merge caches |
150 | 158 | uses: actions/cache/save@v3 |
151 | 159 | with: |
152 | 160 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
153 | | - key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 161 | + key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
154 | 162 |
|
155 | 163 | lint: |
156 | 164 | needs: merge-caches |
@@ -179,7 +187,7 @@ jobs: |
179 | 187 | uses: actions/cache/restore@v3 |
180 | 188 | with: |
181 | 189 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
182 | | - key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 190 | + key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
183 | 191 | fail-on-cache-miss: true |
184 | 192 |
|
185 | 193 | - name: Run clippy |
@@ -229,7 +237,7 @@ jobs: |
229 | 237 | uses: actions/cache/restore@v3 |
230 | 238 | with: |
231 | 239 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
232 | | - key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 240 | + key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
233 | 241 | fail-on-cache-miss: true |
234 | 242 |
|
235 | 243 | # NOTE: we do this separately because --workspace operates in weird ways |
@@ -274,7 +282,7 @@ jobs: |
274 | 282 | uses: actions/cache/restore@v3 |
275 | 283 | with: |
276 | 284 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
277 | | - key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 285 | + key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
278 | 286 | fail-on-cache-miss: true |
279 | 287 |
|
280 | 288 | - name: Check all features (workspace) |
@@ -309,7 +317,7 @@ jobs: |
309 | 317 | uses: actions/cache/restore@v3 |
310 | 318 | with: |
311 | 319 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
312 | | - key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 320 | + key: all-programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
313 | 321 | fail-on-cache-miss: true |
314 | 322 |
|
315 | 323 | - name: Install testing tools |
@@ -409,7 +417,7 @@ jobs: |
409 | 417 | uses: actions/cache/restore@v3 |
410 | 418 | with: |
411 | 419 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
412 | | - key: ${{ matrix.program-target }}-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 420 | + key: ${{ matrix.program-target }}-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
413 | 421 | fail-on-cache-miss: true |
414 | 422 |
|
415 | 423 | # This is not pretty, but we need `make` to see the compiled programs are |
@@ -456,7 +464,7 @@ jobs: |
456 | 464 | uses: actions/cache/restore@v3 |
457 | 465 | with: |
458 | 466 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
459 | | - key: ${{ matrix.program-target }}-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 467 | + key: ${{ matrix.program-target }}-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
460 | 468 | fail-on-cache-miss: true |
461 | 469 |
|
462 | 470 | - name: Generate traces |
@@ -675,7 +683,7 @@ jobs: |
675 | 683 | uses: actions/cache/restore@v3 |
676 | 684 | with: |
677 | 685 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
678 | | - key: cairo_proof_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 686 | + key: cairo_proof_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
679 | 687 | fail-on-cache-miss: true |
680 | 688 |
|
681 | 689 | - name: Run script |
@@ -715,7 +723,7 @@ jobs: |
715 | 723 | uses: actions/cache/restore@v3 |
716 | 724 | with: |
717 | 725 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
718 | | - key: cairo_proof_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'Makefile', 'requirements.txt') }} |
| 726 | + key: cairo_proof_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
719 | 727 | fail-on-cache-miss: true |
720 | 728 |
|
721 | 729 | - name: Fetch pie |
|
0 commit comments