Skip to content

Add tests for IsConnected() #185

Add tests for IsConnected()

Add tests for IsConnected() #185

Workflow file for this run

name: Build and Test
on: [push]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: ./softcam.sln
jobs:
build:
strategy:
matrix:
configuration: [Release, Debug]
platform: [x64, Win32]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build Libraries
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{matrix.configuration}} /p:Platform=${{matrix.platform}} ${{env.SOLUTION_FILE_PATH}}
- name: Core Tests
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ${{matrix.platform}}/${{matrix.configuration}}/core_tests.exe
- name: Dll Tests
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ${{matrix.platform}}/${{matrix.configuration}}/dll_tests.exe
- name: Build Example sender
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{matrix.configuration}} /p:Platform=${{matrix.platform}} ./examples/sender/sender.sln
- name: Build Example softcam_installer
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{matrix.configuration}} /p:Platform=${{matrix.platform}} ./examples/softcam_installer/softcam_installer.sln
- name: Build Example python_binding
working-directory: ./examples/python_binding
shell: cmd
if: ${{ matrix.configuration == 'Release' && matrix.platform == 'x64' }}
run: |
echo yes | call DownloadPybind11.bat
call _GetPythonPath.bat
msbuild /m /p:Configuration=${{matrix.configuration}} /p:Platform=${{matrix.platform}} ./python_binding.sln
- name: Test Python Binding
working-directory: ./examples/python_binding
shell: cmd
if: ${{ matrix.configuration == 'Release' && matrix.platform == 'x64' }}
run: |
pip install pytest numpy
pytest