Merge pull request #228 from OpenMS/feature/arraywrapper-pyx-only #384
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 autowrap | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| # By default, GitHub will maximize the number of jobs run in parallel | |
| # depending on the available runners on GitHub-hosted virtual machines. | |
| # max-parallel: 8 | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - CYTHON: "==3.1.0" | |
| python-version: "3.10" | |
| - CYTHON: "==3.1.0" | |
| python-version: "3.11" | |
| - CYTHON: "==3.1.0" | |
| python-version: "3.12" | |
| - CYTHON: "==3.1.0" | |
| python-version: "3.13" | |
| - CYTHON: "==3.2.0" | |
| python-version: "3.10" | |
| - CYTHON: "==3.2.0" | |
| python-version: "3.11" | |
| - CYTHON: "==3.2.0" | |
| python-version: "3.12" | |
| - CYTHON: "==3.2.0" | |
| python-version: "3.13" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip-${{ matrix.python-version }}- | |
| ${{ runner.os }}-pip- | |
| - name: Upgrade pip and install build tools | |
| run: | | |
| python -m pip install -U pip build setuptools wheel | |
| - name: Install Cython | |
| run: | | |
| python -m pip install "Cython${{ matrix.CYTHON }}" | |
| - name: Install package in development mode | |
| run: | | |
| python -m pip install -e .[test] | |
| - name: Run tests | |
| run: | | |
| python -m pytest tests/ -v |