Skip to content

Commit 745177b

Browse files
committed
CI: Test Integration tests with Python 3.11
1 parent 043b05e commit 745177b

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/CI.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,3 +444,58 @@ jobs:
444444
cd integration_tests
445445
./run_tests.py -b c_sym cpython_sym llvm_sym
446446
./run_tests.py -b c_sym cpython_sym llvm_sym -f
447+
448+
python_3_11:
449+
name: Run Integration tests with Python 3.11
450+
runs-on: ubuntu-latest
451+
steps:
452+
- uses: actions/checkout@v3
453+
with:
454+
fetch-depth: 0
455+
456+
- uses: mamba-org/setup-micromamba@v1
457+
with:
458+
environment-name: lp
459+
condarc: |
460+
channels:
461+
- conda-forge
462+
create-args: >-
463+
llvmdev=11.1.0
464+
bison=3.4
465+
re2c
466+
zlib
467+
cmake
468+
make
469+
python=3.11.4
470+
numpy
471+
472+
- uses: hendrikmuhs/ccache-action@main
473+
with:
474+
key: ${{ github.job }}-${{ matrix.os }}
475+
476+
- name: Show Python version
477+
shell: bash -e -l {0}
478+
run: python --version
479+
480+
- name: Build
481+
shell: bash -e -l {0}
482+
run: |
483+
./build0.sh
484+
cmake . -G"Unix Makefiles" \
485+
-DCMAKE_BUILD_TYPE=Debug \
486+
-DWITH_LLVM=yes \
487+
-DLPYTHON_BUILD_ALL=yes \
488+
-DWITH_STACKTRACE=no \
489+
-DWITH_RUNTIME_STACKTRACE=no \
490+
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \
491+
-DCMAKE_INSTALL_PREFIX=`pwd`/inst \
492+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
493+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
494+
495+
cmake --build . -j16 --target install
496+
497+
- name: Test
498+
shell: bash -e -l {0}
499+
run: |
500+
cd integration_tests
501+
./run_tests.py -b cpython

0 commit comments

Comments
 (0)