Merge pull request #321 from tataratat/cu-version-bump #1440
This file contains 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.10"] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install dependencies | |
run: pip install numpy | |
- name: build splinepy minimal/debug/warning | |
if: matrix.os != 'windows-latest' | |
run: | | |
pip install . -v --config-settings=cmake.args="-DSPLINEPY_MORE=OFF;-DSPLINEPY_ENABLE_WARNINGS=ON" --config-settings=cmake.build-type="Debug" | |
- name: build splinepy windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
pip install . -v --config-settings=cmake.args="-DSPLINEPY_MORE=OFF" | |
- name: test | |
run: | | |
pip install funi>=0.0.1 | |
cd tests && python3 -m unittest discover . -v |