Read source arrays through a nanoarrow ArrowArrayView #333
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: build | |
| # refer to https://docs.github.com/en/actions/guides/building-and-testing-python | |
| on: [push] | |
| jobs: | |
| build-cpp: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [macos-latest, ubuntu-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Checkout submodules | |
| run: git submodule update --init --recursive | |
| - name: Build C++ | |
| run: | | |
| cmake -Bbuild ./extension | |
| cmake --build build/ --target run_tests | |
| - name: Test C++ | |
| run: ./build/run_tests | |
| build-cpp-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Checkout submodules | |
| run: git submodule update --init --recursive | |
| - name: Build C++ | |
| run: | | |
| cmake -Bbuild ./extension | |
| cmake --build build/ --target run_tests | |
| - name: Test C++ | |
| run: ./build/Debug/run_tests.exe | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [macos-latest, ubuntu-latest, windows-latest] | |
| python-version: ["3.11", "3.14"] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies and build python module | |
| run: | | |
| python -m pip install --upgrade pip wheel setuptools | |
| pip install --verbose .[dev] | |
| - name: Lint | |
| run: | | |
| ruff check | |
| - name: Test with pytest | |
| run: | | |
| pytest --cov=snail --cov-report=term-missing tests |