Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 8827faa

Browse files
committed
Cleanup pytest github actions job
1 parent c53af47 commit 8827faa

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/pytest.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@ jobs:
1818
echo RUN_STAMP=${{ runner.os }}-${{ (env.cuda_compiler_version != 'None') && format('cuda{0}', env.cuda_compiler_version) || 'cpu' }} >>$GITHUB_ENV
1919
echo CONDA_ENV_PATH=$CONDA/envs/${{ env.CONDA_ENV }} >>$GITHUB_ENV
2020
21-
- name: Update Conda
21+
- name: Restore Conda env cache
22+
id: conda-cache
23+
uses: actions/cache@v3
24+
with:
25+
path: |
26+
${{ env.CONDA_ENV_PATH }}
27+
key: ${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-${{ env.DATE }}
28+
restore-keys: |
29+
${{ env.RUN_STAMP }}-conda-${{ hashFiles('omniscidb/scripts/mapd-deps-conda-dev-env.yml') }}-
30+
31+
- name: Update Conda env
32+
if: steps.conda-cache.cache-hit != 'true'
2233
run: |
2334
conda update conda
2435
conda env update -f omniscidb/scripts/mapd-deps-conda-dev-env.yml
25-
conda install -n ${{ env.CONDA_ENV }} -c conda-forge python=3.8
2636
2737
- name: Restore Maven cache
2838
uses: actions/cache@v3
@@ -37,7 +47,8 @@ jobs:
3747
CPU_COUNT: 4
3848
RUN_TESTS: 1
3949
run: |
40-
mkdir -p ${{ env.PREFIX }} build
50+
rm -rf build
51+
mkdir -p build
4152
cd build
4253
$CONDA/bin/conda run -n ${{ env.CONDA_ENV }} sh -c "cmake .. -DENABLE_CUDA=off -DENABLE_CONDA=on -DENABLE_PYTHON=on -DCMAKE_BUILD_TYPE=release && make -j2 && make install"
4354

0 commit comments

Comments
 (0)