File tree Expand file tree Collapse file tree 3 files changed +279
-63
lines changed Expand file tree Collapse file tree 3 files changed +279
-63
lines changed Original file line number Diff line number Diff line change @@ -118,17 +118,34 @@ jobs:
118
118
echo "CPPFLAGS=-I$GCC_HOME/include" >>$GITHUB_ENV
119
119
echo "LDFLAGS=-L$GCC_HOME/lib/gcc/${{ env.GCC_VERSION }}" >>$GITHUB_ENV
120
120
121
- - name : Configure with preset
121
+ - name : Install Python dependencies
122
122
run : |
123
- cmake --preset ${{ matrix.preset }} -DENABLE_CLANG_TIDY=${{ matrix.compiler == 'clang' }}
123
+ pip3 install -U pytest
124
124
125
- - name : Build with preset
125
+ - name : Configure
126
126
run : |
127
- cmake --build --preset ${{ matrix.preset }} --parallel
127
+ cmake \
128
+ --preset ${{ matrix.preset }} \
129
+ -DENABLE_CLANG_TIDY=${{ matrix.compiler == 'clang' }}
128
130
129
- - name : Test with preset
131
+ - name : Build
130
132
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
132
149
133
150
- name : Upload build logs
134
151
if : failure()
You can’t perform that action at this time.
0 commit comments