Merge pull request #716 from PyLops/dev #102
Workflow file for this run
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: PyLops Testing with Intel oneAPI Math Kernel Library(oneMKL) | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| runs-on: ${{ matrix.platform }} | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get history and tags for SCM versioning to work | |
| run: | | |
| git fetch --prune --unshallow | |
| git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
| - uses: conda-incubator/[email protected] | |
| with: | |
| use-mamba: true | |
| channels: https://software.repos.intel.com/python/conda, conda-forge | |
| conda-remove-defaults: true | |
| python-version: ${{ matrix.python-version }} | |
| activate-environment: mkl-test-env | |
| - name: Install dependencies | |
| run: | | |
| conda install -y pyfftw | |
| pip install -r requirements-intel-mkl.txt | |
| pip install -r requirements-dev.txt | |
| pip install -r requirements-torch.txt | |
| - name: Install pylops | |
| run: | | |
| python -m setuptools_scm | |
| pip install . | |
| - name: Tests with pytest | |
| run: | | |
| pytest |