Skip to content

Commit 8eda48b

Browse files
Test Kernel; presently it only builds, we should add tests later
1 parent b1567d8 commit 8eda48b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/CI.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,51 @@ jobs:
497497
cd integration_tests
498498
./run_tests.py -b cpython c_py
499499
500+
build_jupyter_kernel:
501+
name: Build Jupyter Kernel
502+
runs-on: ubuntu-latest
503+
steps:
504+
- uses: actions/checkout@v3
505+
with:
506+
fetch-depth: 0
507+
508+
- uses: mamba-org/setup-micromamba@v1
509+
with:
510+
environment-file: ci/environment.yml
511+
create-args: >-
512+
jupyter
513+
nlohmann_json
514+
python=3.10
515+
bison=3.4
516+
xeus=5.1.0
517+
xeus-zmq=3.0.0
518+
519+
- uses: hendrikmuhs/ccache-action@main
520+
with:
521+
variant: sccache
522+
key: ${{ github.job }}-${{ matrix.os }}
523+
524+
- name: Build LPython with Kernel
525+
shell: bash -e -l {0}
526+
run: |
527+
./build0.sh
528+
export CXXFLAGS="-Werror"
529+
cmake . -GNinja \
530+
-DCMAKE_BUILD_TYPE=Debug \
531+
-DWITH_LLVM=yes \
532+
-DWITH_XEUS=yes \
533+
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \
534+
-DCMAKE_INSTALL_PREFIX="$CONDA_PREFIX"
535+
536+
ninja install
537+
ctest --output-on-failure
538+
jupyter kernelspec list --json
539+
540+
- name: Test Kernel
541+
shell: bash -e -l {0}
542+
run: |
543+
ctest --output-on-failure
544+
500545
upload_tarball:
501546
name: Upload Tarball
502547
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)