|
49 | 49 | ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
50 | 50 | timeout: 60
|
51 | 51 | script: |
|
52 |
| - PYTHON_VERSION=3.10 |
53 |
| - # TODO: Figure out why /opt/conda/envs/py_$PYTHON_VERSION/bin is not in the path |
54 |
| - # here, as it's there in the container |
55 |
| - export PATH="/opt/conda/envs/py_${PYTHON_VERSION}/bin:${PATH}" |
| 52 | + # The generic Linux job chooses to use base env, not the one setup by the image |
| 53 | + CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") |
| 54 | + conda activate "${CONDA_ENV}" |
56 | 55 |
|
57 | 56 | MODEL_NAME=${{ matrix.model }}
|
58 | 57 | BUILD_TOOL=${{ matrix.build-tool }}
|
@@ -105,10 +104,9 @@ jobs:
|
105 | 104 | submodules: 'true'
|
106 | 105 | ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
107 | 106 | script: |
|
108 |
| - PYTHON_VERSION=3.10 |
109 |
| - # TODO: Figure out why /opt/conda/envs/py_$PYTHON_VERSION/bin is not in the path |
110 |
| - # here, as it's there in the container |
111 |
| - export PATH="/opt/conda/envs/py_${PYTHON_VERSION}/bin:${PATH}" |
| 107 | + # The generic Linux job chooses to use base env, not the one setup by the image |
| 108 | + CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") |
| 109 | + conda activate "${CONDA_ENV}" |
112 | 110 |
|
113 | 111 | BUILD_TOOL=${{ matrix.build-tool }}
|
114 | 112 | PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
|
@@ -155,10 +153,9 @@ jobs:
|
155 | 153 | submodules: 'true'
|
156 | 154 | ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
157 | 155 | script: |
|
158 |
| - PYTHON_VERSION=3.10 |
159 |
| - # TODO: Figure out why /opt/conda/envs/py_$PYTHON_VERSION/bin is not in the path |
160 |
| - # here, as it's there in the container |
161 |
| - export PATH="/opt/conda/envs/py_${PYTHON_VERSION}/bin:${PATH}" |
| 156 | + # The generic Linux job chooses to use base env, not the one setup by the image |
| 157 | + CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") |
| 158 | + conda activate "${CONDA_ENV}" |
162 | 159 |
|
163 | 160 | BUILD_TOOL=${{ matrix.build-tool }}
|
164 | 161 | PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
|
|
0 commit comments