@@ -73,21 +73,21 @@ jobs:
73
73
- name : Restore timestamps
74
74
uses : chetan/git-restore-mtime-action@v1
75
75
76
- - name : Python3 Build
76
+ - name : Install uv
77
77
if : steps.cache-programs.outputs.cache-hit != 'true'
78
78
&& matrix.program-target != 'cairo_1_test_contracts'
79
79
&& matrix.program-target != 'cairo_2_test_contracts'
80
- uses : actions /setup-python@v4
80
+ uses : astral-sh /setup-uv@v5
81
81
with :
82
- python-version : ' 3.9'
83
- cache : ' pip'
84
-
85
- - name : Install cairo-lang and deps
86
- if : |
87
- steps.cache-programs.outputs.cache-hit != 'true'
82
+ enable-cache : true
83
+ - name : Install python deps
84
+ if : steps.cache-programs.outputs.cache-hit != 'true'
88
85
&& matrix.program-target != 'cairo_1_test_contracts'
89
86
&& matrix.program-target != 'cairo_2_test_contracts'
90
- run : pip install -r requirements.txt
87
+ run : |
88
+ make python-deps
89
+ . cairo-vm-env/bin/activate
90
+ echo PATH=$PATH >> $GITHUB_ENV
91
91
92
92
- name : Install cairo 1 compiler
93
93
if : steps.cache-programs.outputs.cache-hit != 'true' && matrix.program-target == 'cairo_1_test_contracts'
@@ -443,16 +443,17 @@ jobs:
443
443
cairo_programs/**/*.pie.zip
444
444
key : ${{ matrix.program-target }}-reference-trace-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'examples/wasm-demo/src/array_sum.cairo', 'Makefile', 'requirements.txt') }}
445
445
446
- - name : Python3 Build
446
+ - name : Install uv
447
447
if : steps.trace-cache.outputs.cache-hit != 'true'
448
- uses : actions /setup-python@v4
448
+ uses : astral-sh /setup-uv@v5
449
449
with :
450
- python-version : ' 3.9'
451
- cache : ' pip'
452
-
453
- - name : Install cairo-lang and deps
450
+ enable-cache : true
451
+ - name : Install python deps
454
452
if : steps.trace-cache.outputs.cache-hit != 'true'
455
- run : pip install -r requirements.txt
453
+ run : |
454
+ make python-deps
455
+ . cairo-vm-env/bin/activate
456
+ echo PATH=$PATH >> $GITHUB_ENV
456
457
457
458
- name : Fetch programs
458
459
if : steps.trace-cache.outputs.cache-hit != 'true'
@@ -805,15 +806,18 @@ jobs:
805
806
with :
806
807
fetch-depth : 0
807
808
808
- - name : Python3 Build
809
- uses : actions /setup-python@v4
809
+ - name : Install uv
810
+ uses : astral-sh /setup-uv@v5
810
811
with :
811
- python-version : ' 3.9'
812
- cache : ' pip'
812
+ enable-cache : true
813
+ - name : Install python deps
814
+ run : |
815
+ make python-deps
816
+ . cairo-vm-env/bin/activate
817
+ echo PATH=$PATH >> $GITHUB_ENV
813
818
814
- - name : Install cairo-lang and deps
819
+ - name : Install wasm-pack dep
815
820
run : |
816
- pip install -r requirements.txt
817
821
npm install -g wasm-pack
818
822
819
823
- name : Build wasm-demo
@@ -830,14 +834,15 @@ jobs:
830
834
- name : Checkout
831
835
uses : actions/checkout@v4
832
836
833
- - name : Python3 Build
834
- uses : actions /setup-python@v4
837
+ - name : Install uv
838
+ uses : astral-sh /setup-uv@v5
835
839
with :
836
- python-version : ' 3.9'
837
- cache : ' pip'
838
-
839
- - name : Install cairo-lang and deps
840
- run : pip install -r requirements.txt
840
+ enable-cache : true
841
+ - name : Install python deps
842
+ run : |
843
+ make python-deps
844
+ . cairo-vm-env/bin/activate
845
+ echo PATH=$PATH >> $GITHUB_ENV
841
846
842
847
- name : Fetch release binary
843
848
uses : actions/cache/restore@v3
@@ -869,14 +874,15 @@ jobs:
869
874
- name : Checkout
870
875
uses : actions/checkout@v4
871
876
872
- - name : Python3 Build
873
- uses : actions /setup-python@v4
877
+ - name : Install uv
878
+ uses : astral-sh /setup-uv@v5
874
879
with :
875
- python-version : ' 3.9'
876
- cache : ' pip'
877
-
878
- - name : Install cairo-lang and deps
879
- run : pip install -r requirements.txt
880
+ enable-cache : true
881
+ - name : Install python deps
882
+ run : |
883
+ make python-deps
884
+ . cairo-vm-env/bin/activate
885
+ echo PATH=$PATH >> $GITHUB_ENV
880
886
881
887
- name : Fetch release binary
882
888
uses : actions/cache/restore@v3
@@ -920,14 +926,15 @@ jobs:
920
926
- name : Checkout
921
927
uses : actions/checkout@v4
922
928
923
- - name : Python3 Build
924
- uses : actions /setup-python@v4
929
+ - name : Install uv
930
+ uses : astral-sh /setup-uv@v5
925
931
with :
926
- python-version : ' 3.9'
927
- cache : ' pip'
928
-
929
- - name : Install cairo-lang and deps
930
- run : pip install -r requirements.txt
932
+ enable-cache : true
933
+ - name : Install python deps
934
+ run : |
935
+ make python-deps
936
+ . cairo-vm-env/bin/activate
937
+ echo PATH=$PATH >> $GITHUB_ENV
931
938
932
939
- name : Fetch release binary
933
940
uses : actions/cache/restore@v3
0 commit comments