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

Remove Docs CI and add pytest #224

Merged
merged 2 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,6 @@ jobs:

sanity-test:
uses: ./.github/workflows/build-docker-hdk.yml

pytest:
uses: ./.github/workflows/pytest.yml
46 changes: 46 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: pyhdk pytest
on:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest

env:
CONDA_ENV: omnisci-dev

steps:
- uses: actions/checkout@v3

- name: Set env context
run: |
echo CONDA_PATH=$CONDA >>$GITHUB_ENV
echo RUN_STAMP=${{ runner.os }}-${{ (env.cuda_compiler_version != 'None') && format('cuda{0}', env.cuda_compiler_version) || 'cpu' }} >>$GITHUB_ENV
echo CONDA_ENV_PATH=$CONDA/envs/${{ env.CONDA_ENV }} >>$GITHUB_ENV

- name: Update Conda
run: |
conda update conda
conda env update -f omniscidb/scripts/mapd-deps-conda-dev-env.yml
conda install -n ${{ env.CONDA_ENV }} -c conda-forge python=3.8

- name: Restore Maven cache
uses: actions/cache@v3
with:
path: |
~/.m2
key: ${{ env.RUN_STAMP }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ env.RUN_STAMP }}-maven

- name: Build
env:
CPU_COUNT: 4
RUN_TESTS: 1
run: |
mkdir -p ${{ env.PREFIX }} build
cd build
$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"

- name: Run pytest
run: |
$CONDA/bin/conda run -n ${{ env.CONDA_ENV }} pytest python/tests/ --ignore=python/tests/modin
41 changes: 0 additions & 41 deletions omniscidb/.github/workflows/docs.yml

This file was deleted.