diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 05aa8cb9b..969f71e32 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -56,7 +56,8 @@ jobs: - name: Configure CMake run: | - cmake -B ${{github.workspace}}/${{ matrix.buildloc }} ` + cmake ` + -B ${{github.workspace}}/${{ matrix.buildloc }} ` -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ` -DCMAKE_GENERATOR_PLATFORM=${{ matrix.platform }} ` -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake ` @@ -64,7 +65,6 @@ jobs: -DVCPKG_MANIFEST_MODE=ON ` -DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }} ` -DWITH_HTTP_API=ON ` - -DWITH_TESTS=OFF ` -DWITH_WEBSOCKETS=ON - name: Build @@ -87,3 +87,12 @@ jobs: with: name: installer${{ matrix.arch }} path: ${{ github.workspace }}/installer/mosquitto*.exe + + - uses: actions/setup-python@v6 + with: + python-version: '3.13' + cache: 'pip' # caching pip dependencies + - run: pip install -r requirements.txt + + - name: Tests + run: ctest --timeout 60 --test-dir ${{ github.workspace }}/${{ matrix.buildloc }} -C ${{ env.BUILD_TYPE }} --output-on-failure --repeat until-pass:5 -j20 --resource-spec-file ../test/resource.json diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..7a10cf110 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +paho-mqtt==2.1.0 +psutil==7.2.2 +pywin32==311; platform_system == "Windows"