[pre-commit.ci] pre-commit autoupdate (#485) #2536
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: Builds minimal and runs tests | |
| on: | |
| push | |
| permissions: | |
| contents: read | |
| jobs: | |
| build_and_tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| os: [ubuntu-latest, macos-15-intel, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: build | |
| if: matrix.os != 'windows-latest' | |
| run: | | |
| pip install ".[test]" -v --config-settings=cmake.args="-DSPLINEPY_MORE=OFF;-DSPLINEPY_ENABLE_WARNINGS=ON" --config-settings=cmake.build-type="Debug" | |
| - name: build for windows | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| pip install ".[test]" -v --config-settings=cmake.args="-DSPLINEPY_MORE=OFF" | |
| - name: test | |
| run: | | |
| pytest tests |