@@ -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.
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 : |
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