Skip to content

Commit 62bca4b

Browse files
committed
fix
1 parent 6b72838 commit 62bca4b

File tree

7 files changed

+14
-28
lines changed

7 files changed

+14
-28
lines changed

.github/workflows/bench.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
with:
2525
enable-cache: true
2626
- name: Install python deps
27-
run: make ci-python-deps
28-
- name: Install python dependencies
29-
run: uv pip install --system -r requirements.txt
27+
run: make ci-python-deps && . cairo-vm-env/bin/activate
3028
- name: Run benchmark
3129
run: make benchmark-action
3230
- name: Store benchmark result

.github/workflows/hyper_threading_benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
enable-cache: true
2121
- name: Install python deps
22-
run: make ci-python-deps
22+
run: make ci-python-deps && . cairo-vm-env/bin/activate
2323

2424
- name: Install Dependencies
2525
run: |

.github/workflows/hyperfine.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
enable-cache: true
4343
- name: Install python deps
4444
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
45-
run: make ci-python-deps
45+
run: make ci-python-deps && . cairo-vm-env/bin/activate
4646

4747
- name: Build programs
4848
if: ${{ steps.cache.outputs.cache-hit != 'true' }}

.github/workflows/iai_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
enable-cache: true
2121
- name: Install python deps
22-
run: make ci-python-deps
22+
run: make ci-python-deps && . cairo-vm-env/bin/activate
2323
- name: Install test dependencies
2424
run: |
2525
sudo apt update

.github/workflows/iai_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
with:
6565
enable-cache: true
6666
- name: Install python deps
67-
run: make ci-python-deps
67+
run: make ci-python-deps && . cairo-vm-env/bin/activate
6868
- name: Install test dependencies
6969
run: |
7070
sudo apt update

.github/workflows/rust.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
if: steps.cache-programs.outputs.cache-hit != 'true'
8787
&& matrix.program-target != 'cairo_1_test_contracts'
8888
&& matrix.program-target != 'cairo_2_test_contracts'
89-
run: make ci-python-deps
89+
run: make ci-python-deps && . cairo-vm-env/bin/activate
9090

9191
- name: Install cairo 1 compiler
9292
if: steps.cache-programs.outputs.cache-hit != 'true' && matrix.program-target == 'cairo_1_test_contracts'
@@ -456,7 +456,7 @@ jobs:
456456
enable-cache: true
457457
- name: Install python deps
458458
if: steps.trace-cache.outputs.cache-hit != 'true'
459-
run: make ci-python-deps
459+
run: make ci-python-deps && . cairo-vm-env/bin/activate
460460

461461
- name: Fetch programs
462462
if: steps.trace-cache.outputs.cache-hit != 'true'
@@ -711,7 +711,7 @@ jobs:
711711
with:
712712
enable-cache: true
713713
- name: Install python deps
714-
run: make ci-python-deps
714+
run: make ci-python-deps && . cairo-vm-env/bin/activate
715715

716716
- name: Install cairo-lang and deps
717717
run: |
@@ -736,7 +736,7 @@ jobs:
736736
with:
737737
enable-cache: true
738738
- name: Install python deps
739-
run: make ci-python-deps
739+
run: make ci-python-deps && . cairo-vm-env/bin/activate
740740

741741
- name: Fetch release binary
742742
uses: actions/cache/restore@v3
@@ -773,7 +773,7 @@ jobs:
773773
with:
774774
enable-cache: true
775775
- name: Install python deps
776-
run: make ci-python-deps
776+
run: make ci-python-deps && . cairo-vm-env/bin/activate
777777

778778
- name: Fetch release binary
779779
uses: actions/cache/restore@v3
@@ -822,7 +822,7 @@ jobs:
822822
with:
823823
enable-cache: true
824824
- name: Install python deps
825-
run: make ci-python-deps
825+
run: make ci-python-deps && . cairo-vm-env/bin/activate
826826

827827
- name: Fetch release binary
828828
uses: actions/cache/restore@v3

.github/workflows/test_install.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,10 @@ jobs:
5959
key: ${{ runner.os }}-install-${{ github.sha }}
6060
restore-keys: ${{ runner.os }}-install-
6161

62-
- name: Enable pip cache
63-
run: |
64-
mkdir -p ~/.cache/pip
65-
chown -v -R $USER ~/.cache
66-
chmod -v -R 770 ~/.cache
67-
ls -al ~/
68-
ls -al ~/.cache
69-
70-
# NOTE: we don't use install-python because lsb_release isn't installed
71-
- name: Cache Python dependencies
72-
uses: actions/cache@v4
62+
- name: Install uv
63+
uses: astral-sh/setup-uv@v5
7364
with:
74-
path: |
75-
~/.cache/pip/wheels
76-
key: ${{ runner.os }}-python-install-${{ github.sha }}
77-
restore-keys: ${{ runner.os }}-python-install-
65+
enable-cache: true
7866

7967
# NOTE: we do it in one step because GitHub cleans the PATH between steps
8068
- name: Install dependencies and compile project

0 commit comments

Comments
 (0)