Repository navigation
Unix-MPICH #2796
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: Unix-MPICH | |
| on: | |
| pull_request: | |
| # Run daily at midnight (UTC). | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.11, 3.12] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| name: Setup conda | |
| with: | |
| auto-update-conda: true | |
| activate-environment: testing | |
| auto-activate-base: false | |
| channels: defaults | |
| channel-priority: true | |
| python-version: ${{ matrix.python-version }} | |
| - shell: bash -l {0} | |
| name: Install dependencies | |
| run: | | |
| conda install -c conda-forge mpi4py mpich | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| pip install .[test] | |
| pip install gest-api | |
| pip install xopt | |
| - shell: bash -l {0} | |
| name: Run unit tests with MPICH | |
| run: | | |
| python -m pytest tests/ | |
| mpirun -np 3 python -m pytest --with-mpi tests/test_grid_sampling_mpi.py |