1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
steps:
- checkout: self
clean: true
fetchDepth: 1
- bash: source .azure/install-$(MPI).sh
displayName: 'Install MPI'
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
architecture: x64
displayName: 'Use Python $(PYTHON_VERSION)'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install packaging tools'
- script: python -m pip wheel -v --wheel-dir=dist .
displayName: 'Build package'
- script: python -m pip install --upgrade -r conf/requirements-test.txt
displayName: 'Install test dependencies'
- script: python -m pip install mpi4py --no-index --find-links=dist
displayName: 'Install package for testing'
- script: mpiexec -n 1 python -m mpi4py --mpi-std-version
displayName: 'Test package'
- script: mpiexec -n 1 python -m mpi4py --mpi-lib-version
displayName: 'Test package'
- script: mpiexec -n 1 python test/main.py -v
displayName: 'Test package'
- script: mpiexec -n 2 python test/main.py -v -f -e spawn
displayName: 'Test package'
- script: mpiexec -n 1 python demo/futures/test_futures.py -v
displayName: 'Test subpackage'
- script: mpiexec -n 2 python demo/futures/test_futures.py -v
displayName: 'Test subpackage'
- script: python demo/test-run/test_run.py -v
displayName: 'Test subpackage'
- script: bash demo/init-fini/run.sh
displayName: 'Test extra'
- script: bash demo/check-mpiexec/run.sh
displayName: 'Test extra'
- script: python -m pip uninstall --yes mpi4py
displayName: 'Uninstall package after testing'
|