Merge pull request #115 from gjkennedy/pynastran #121
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: pytest (Windows) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout amigo | |
| uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| uses: mpi4py/setup-mpi@v1 | |
| with: | |
| mpi: msmpi | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install BLAS | |
| run: pip install mkl mkl-devel | |
| - name: Checkout a2d | |
| run: git clone --depth 1 https://github.com/smdogroup/a2d.git ../a2d | |
| - name: Install amigo | |
| # MUMPS_LIB_DIR is intentionally not set: amigo is built without Mumps support | |
| # because the Fortran toolchain required to build ThirdParty-Mumps is not | |
| # available on Windows runners. | |
| run: | | |
| pip install scikit-build-core pybind11 mpi4py numpy scipy matplotlib | |
| pip install -e . -C cmake.args="-DAMIGO_ENABLE_OPENMP=OFF" | |
| - name: Install test dependencies | |
| run: pip install pytest smt | |
| - name: Run tests | |
| # tests/functional is excluded because it contains Mumps-dependent tests that | |
| # require the ThirdParty-Mumps library, which cannot be built on Windows | |
| # runners due to the absence of a Fortran toolchain (gfortran). | |
| run: pytest tests/ -v --ignore=tests/functional |