Bump the github-actions group across 1 directory with 2 updates #15
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: github CI | |
| on: [pull_request, push] | |
| jobs: | |
| test_conda: | |
| name: Example (${{ matrix.python-version }}, ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| # 2025/09/01: windows is causing problems so let's avoid testing windows for the timebeing | |
| os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
| #os: ["ubuntu-latest", "macos-latest"] | |
| # 2025/06/19: 3.14 causes an error with conda_incubator/setup-miniconda@v3 | |
| # 2025/09/18: 3.8 macos and windows has problems with the new compilers. | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| #python-version: ["3.10"] # Shortened matrix for quicker testing | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniforge-version: latest # Installs Miniforge instead of Miniconda | |
| use-mamba: true # Recommended for faster installs | |
| python-version: ${{ matrix.python-version }} | |
| auto-update-conda: true # Auto-update conda or mamba | |
| - name: Install Our own environment | |
| shell: bash -el {0} | |
| run: | | |
| conda env create --name anuga_env --file environments/environment_${{matrix.python-version}}.yml | |
| - name: Install gcc compilers on Windows | |
| if: runner.os == 'Windows' | |
| shell: bash -el {0} | |
| run: | | |
| conda install -c conda-forge -n anuga_env libpython gcc_win-64 gxx_win-64 | |
| # As of 2025/06/19, strange combination of mpi4py, the new compilers and pytest is | |
| # causing a segmentation fault on Windows so we uninstall mpi4py | |
| # This is a temporary workaround until the issue is resolved. | |
| conda uninstall -n anuga_env mpi4py | |
| - name: Install clang with openmp compiler on macOS | |
| if: runner.os == 'macOS' | |
| shell: bash -el {0} | |
| run: | | |
| conda install -c conda-forge -n anuga_env cxx-compiler llvm-openmp | |
| - name: Install anuga package | |
| shell: bash -el {0} | |
| run: | | |
| conda activate anuga_env | |
| pip install --no-build-isolation -v . | |
| - name: Test package | |
| shell: bash -el {0} | |
| run: | | |
| conda activate anuga_env | |
| cd .. | |
| export OMP_NUM_THREADS=1 | |
| pytest --pyargs anuga | |
| #pytest -p no:faulthandler -rs --pyargs anuga |