Skip to content

Commit e483936

Browse files
committed
build(cmake): update presets for Python variants
1 parent e2c2c56 commit e483936

File tree

3 files changed

+279
-63
lines changed

3 files changed

+279
-63
lines changed

.github/workflows/build-and-test.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,34 @@ jobs:
118118
echo "CPPFLAGS=-I$GCC_HOME/include" >>$GITHUB_ENV
119119
echo "LDFLAGS=-L$GCC_HOME/lib/gcc/${{ env.GCC_VERSION }}" >>$GITHUB_ENV
120120
121-
- name: Configure with preset
121+
- name: Install Python dependencies
122122
run: |
123-
cmake --preset ${{ matrix.preset }} -DENABLE_CLANG_TIDY=${{ matrix.compiler == 'clang' }}
123+
pip3 install -U pytest
124124
125-
- name: Build with preset
125+
- name: Configure
126126
run: |
127-
cmake --build --preset ${{ matrix.preset }} --parallel
127+
cmake \
128+
--preset ${{ matrix.preset }} \
129+
-DENABLE_CLANG_TIDY=${{ matrix.compiler == 'clang' }}
128130
129-
- name: Test with preset
131+
- name: Build
130132
run: |
131-
ctest --preset ${{ matrix.preset }} --parallel
133+
cmake \
134+
--build \
135+
--preset ${{ matrix.preset }} \
136+
--parallel
137+
138+
- name: Run C++ tests
139+
run: |
140+
ctest \
141+
--preset ${{ matrix.preset }} \
142+
--parallel
143+
144+
- name: Run Python tests
145+
env:
146+
PYTHONPATH: 'python/src:build/${{ matrix.preset }}-python-strict/binding'
147+
run: |
148+
pytest python/tests -v
132149
133150
- name: Upload build logs
134151
if: failure()

0 commit comments

Comments
 (0)