mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
* Fix issue with latest pybind11. * Switch from fmtlib to std::format. * Set CMake policy CMP0144.
26 lines
921 B
YAML
26 lines
921 B
YAML
name: Build & Test Plugin Python
|
|
|
|
on:
|
|
push:
|
|
branches: master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-2022
|
|
steps:
|
|
- name: Build Plugin Python
|
|
id: build-plugin-python
|
|
uses: ModOrganizer2/build-with-mob-action@master
|
|
with:
|
|
mo2-third-parties: gtest python spdlog boost sip pyqt pybind11
|
|
mo2-dependencies: cmake_common uibase
|
|
mo2-cmake-command: -DPLUGIN_PYTHON_TESTS=1 ..
|
|
- name: Build Plugin Python Tests
|
|
run: cmake --build vsbuild --config RelWithDebInfo -j4 --target python-tests --target runner-tests
|
|
working-directory: ${{ steps.build-plugin-python.outputs.working-directory }}
|
|
- name: Test Plugin Python
|
|
run: ctest --test-dir vsbuild -C RelWithDebInfo --output-on-failure
|
|
working-directory: ${{ steps.build-plugin-python.outputs.working-directory }}
|