Merge pull request #364 from IntelPython/fix/coverity-allocate-result… #84
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 project with standard clang compiler | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| permissions: read-all | |
| jobs: | |
| build-with-standard-clang: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| numpy_version: ["'numpy>=2'"] | |
| env: | |
| COMPILER_ROOT: /usr/bin | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1 | |
| with: | |
| access_token: ${{ github.token }} | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang | |
| - name: Setup Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| architecture: x64 | |
| - name: Checkout repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install mkl_fft dependencies | |
| run: | | |
| pip install meson-python ninja cmake cython mkl-devel | |
| pip install ${{ matrix.numpy_version }} | |
| - name: Build mkl_fft | |
| run: | | |
| export CC=${{ env.COMPILER_ROOT }}/clang | |
| pip install -e . --no-build-isolation --no-deps --verbose | |
| - name: Run mkl_fft tests | |
| run: | | |
| pip install pytest mkl-service scipy | |
| python -m pytest -sv --pyargs mkl_fft |