Skip to content

Commit 59cb8d0

Browse files
committed
FIX use clear isolation
1 parent 9fb14db commit 59cb8d0

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/deepinv_run_hf.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ jobs:
4545
- benchmark_dir: "deepinv_bench/benchmarks/benchmark_template"
4646
env:
4747
HOME: /local/jtachell/runner-${{ matrix.benchmark_dir }}
48+
RUNNER_TEMP: /local/jtachell/runner-${{ matrix.benchmark_dir }}/temp
49+
# Setup conda and benchopt
4850
TEST_CONDA_ENV: 'deepinv_bench'
4951
BENCHOPT_CONDA_CMD: 'mamba'
5052
BENCHOPT_DEBUG: 1
51-
RUNNER_TEMP: /local/jtachell/runner-${{ matrix.benchmark_dir }}/temp
5253
defaults:
5354
run:
5455
# Need to use this shell to get conda working properly.
@@ -57,6 +58,12 @@ jobs:
5758

5859
steps:
5960
- uses: actions/checkout@v6
61+
62+
- name: Setup runner isolation
63+
shell: bash
64+
run: |
65+
rm $HOME || echo "HOME "$HOME" doesn't exist"
66+
mkdir -p $HOME
6067
- name: Get Date
6168
id: get-date
6269
run: |
@@ -73,12 +80,6 @@ jobs:
7380
# invalidate it every month to avoid stale caches.
7481
key: ${{ runner.os }}-${{matrix.benchmark_dir}}-${{ steps.get-date.outputs.date }}
7582

76-
- name: Setup runner isolation
77-
shell: bash
78-
run: |
79-
mkdir -p $HOME
80-
rm $HOME/miniconda3/_conda || echo "symlink doesn't exist"
81-
8283
- name: Setup Conda
8384
uses: conda-incubator/setup-miniconda@v3
8485
with:
@@ -101,11 +102,13 @@ jobs:
101102
- name: Install benchmark dependencies
102103
run: |
103104
conda env list
104-
benchopt install -y ${{ matrix.benchmark_dir }}
105+
benchopt install -y ${{ matrix.benchmark_dir }} \
106+
--env-name ${{ env.TEST_CONDA_ENV }}
105107
106108
- name: Run benchmarks
107109
run: |
108-
benchopt run ${{ matrix.benchmark_dir }} --output results_ci_run.csv --no-plot
110+
benchopt run ${{ matrix.benchmark_dir }} --output results_ci_run.csv \
111+
--no-plot --env-name ${{ env.TEST_CONDA_ENV }}
109112
110113
- name: Upload results
111114
run: |

0 commit comments

Comments
 (0)