Skip to content

Commit be2415d

Browse files
committed
CI: run unittests after build
1 parent b671bef commit be2415d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ jobs:
132132
id: init
133133
run: |
134134
build_opts=$WXPYTHON_BUILD_ARGS
135+
echo "XVFB_RUN=" >> $GITHUB_ENV
135136
if [ ${{ matrix.os }} == ubuntu-22.04 ]; then
136137
short_name=linux
138+
echo "XVFB_RUN=xvfb-run -a" >> $GITHUB_ENV
137139
elif [ ${{ matrix.os }} == macos-13 ]; then
138140
short_name=macos
139141
build_opts="$build_opts --mac_arch=arm64,x86_64"
@@ -209,7 +211,10 @@ jobs:
209211
cd dist
210212
pip install wxPython-*.whl
211213
python -c "import wx; print(wx); print(wx.version()); print(wx.PlatformInfo)"
212-
pip uninstall --yes wxPython
214+
215+
- name: Run unittests
216+
run: |
217+
$XVFB_RUN python build.py test
213218
214219
- name: Save wheel as job artifact
215220
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)