File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is a basic workflow that is manually triggered
2+
3+ name : pull_request_tests_MPI_python10
4+
5+ # Controls when the action will run. Workflow runs when manually triggered using the UI
6+ # or API.
7+ on :
8+ # Run tests for every pull request targeting main
9+ pull_request :
10+ branches :
11+ - main
12+ types : [opened, synchronize, reopened]
13+
14+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+ jobs :
16+ run_tests :
17+ # The type of runner that the job will run on
18+ runs-on : ubuntu-latest
19+
20+ # Make the default shell a login shell, so that conda is initialised properly
21+ defaults :
22+ run :
23+ shell : bash -el {0}
24+
25+ # Steps represent a sequence of tasks that will be executed as part of the job
26+ steps :
27+ - name : Setup Miniforge
28+ uses : conda-incubator/setup-miniconda@v2
29+ with :
30+ miniforge-version : latest
31+ python-version : " 3.11"
32+ - name : mpi install
33+ run : |
34+ conda install -c conda-forge openmpi
35+ conda install -c conda-forge mpi4py
36+ - name : pip install
37+ run : |
38+ cd wakis
39+ pip install .['notebook']
40+
41+ - name : Print versions
42+ run : conda list
43+ - name : Checkout wakis
44+ uses : actions/checkout@v4
45+ with :
46+ path : wakis
47+ - name : Run pytest
48+ run : |
49+ cd wakis
50+ mpiexec -n 2 python -m pytest --color=yes -v -s tests/test_007_mpi_lossy_cavity.py
You can’t perform that action at this time.
0 commit comments