Make sure filter_pattern can fit in test_filter #170
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: run_tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| run_tests: | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| include: | |
| - os: windows-latest | |
| executable: ./build/Debug/tests | |
| - os: ubuntu-latest | |
| executable: ./build/tests | |
| - os: macos-latest | |
| executable: ./build/tests | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - name: Setup CMake | |
| uses: threeal/[email protected] | |
| with: | |
| options: rktest_build_tests=ON rktest_build_samples=ON | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest syrupy | |
| - name: Build | |
| run: cmake --build build | |
| - name: Run test suite | |
| run: ${{ matrix.executable }} | |
| - name: Run snapshot tests | |
| run: pytest -vv |