@@ -3,6 +3,7 @@ name: Checks
33env :
44 CAIRO_LANG_VERSION : " 0.13.1"
55 DEVNET_VERSION : " 0.1.2"
6+ DEVNET_SHA : 7e7dbb5
67
78on :
89 push :
9798 # ====================== CONTRACTS v2 ====================== #
9899 - name : Cache contracts v2
99100 id : cache-contracts_v2
100- uses : actions/cache@v3
101+ uses : actions/cache@v4
101102 with :
102103 path : starknet_py/tests/e2e/mock/contracts_v2/target
103104 key : ${{ runner.os }}-contracts-${{ hashFiles('starknet_py/tests/e2e/mock/contracts_v2') }}
@@ -111,7 +112,7 @@ jobs:
111112
112113 - name : Cache contracts v1
113114 id : cache-contracts_v1
114- uses : actions/cache@v3
115+ uses : actions/cache@v4
115116 with :
116117 path : starknet_py/tests/e2e/mock/contracts_v1/target
117118 key : ${{ runner.os }}-contracts-${{ hashFiles('starknet_py/tests/e2e/mock/contracts_v1') }}
@@ -125,7 +126,7 @@ jobs:
125126
126127 - name : Cache contracts v0
127128 id : cache-contracts
128- uses : actions/cache@v3
129+ uses : actions/cache@v4
129130 with :
130131 path : starknet_py/tests/e2e/mock/contracts_compiled
131132 key : ${{ runner.os }}-contracts-${{ hashFiles('starknet_py/tests/e2e/mock/contracts', 'poetry.lock') }}-${{ env.CAIRO_LANG_VERSION }}
@@ -358,11 +359,19 @@ jobs:
358359
359360 # ====================== SETUP DEVNET ====================== #
360361
362+ - name : Cache devnet build
363+ id : windows-devnet-cache
364+ uses : actions/cache@v4
365+ with :
366+ path : ${{ github.workspace }}\starknet_py\tests\e2e\devnet\bin
367+ key : ${{ runner.os }}-devnet-${{ env.DEVNET_SHA }}
368+
361369 - name : Install devnet
370+ if : steps.windows-devnet-cache.outputs.cache-hit != 'true'
362371 run : |
363- $DEVNET_INSTALL_DIR = "$(git rev-parse --show-toplevel)/ starknet_py/ tests/ e2e/ devnet"
364- cargo install --git https://github.com/0xSpaceShard/starknet-devnet-rs.git --locked --rev 7e7dbb5 --root $DEVNET_INSTALL_DIR
365-
372+ $DEVNET_INSTALL_DIR = "${{ github.workspace }}\ starknet_py\ tests\ e2e\ devnet"
373+ cargo install --git https://github.com/0xSpaceShard/starknet-devnet-rs.git --locked --rev ${{ env.DEVNET_SHA }} --root $DEVNET_INSTALL_DIR
374+ shell : pwsh
366375 # ====================== SETUP PYTHON ====================== #
367376
368377 - name : Install poetry
@@ -512,10 +521,19 @@ jobs:
512521
513522 # ====================== SETUP DEVNET ====================== #
514523
524+ - name : Cache devnet build
525+ id : windows-devnet-cache
526+ uses : actions/cache@v4
527+ with :
528+ path : ${{ github.workspace }}\starknet_py\tests\e2e\devnet\bin
529+ key : ${{ runner.os }}-devnet-${{ env.DEVNET_SHA }}
530+
515531 - name : Install devnet
532+ if : steps.windows-devnet-cache.outputs.cache-hit != 'true'
516533 run : |
517- $DEVNET_INSTALL_DIR = "$(git rev-parse --show-toplevel)/starknet_py/tests/e2e/devnet"
518- cargo install --git https://github.com/0xSpaceShard/starknet-devnet-rs.git --locked --rev 7e7dbb5 --root $DEVNET_INSTALL_DIR
534+ $DEVNET_INSTALL_DIR = "${{ github.workspace }}\starknet_py\tests\e2e\devnet"
535+ cargo install --git https://github.com/0xSpaceShard/starknet-devnet-rs.git --locked --rev ${{ env.DEVNET_SHA }} --root $DEVNET_INSTALL_DIR
536+ shell : pwsh
519537
520538 # ====================== RUN TESTS ====================== #
521539
0 commit comments