-
Notifications
You must be signed in to change notification settings - Fork 29
57 lines (55 loc) · 2.25 KB
/
end_to_end_pytest.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: End-to-end Testing (pytest)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
end_to_end_pytest:
strategy:
matrix:
platform: [ubuntu-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y hdf5-tools libhdf5-openmpi-dev openmpi-bin
python -m pip install --upgrade pip
python -m pip install --upgrade pytest mpi4py "cython<3.0.0" numpy wheel pkgconfig "setuptools<62.0.0"
# we need to build h5py with the system HDF5 lib backend
export HDF5_MPI="ON"
# Install h5py https://github.com/h5py/h5py/issues/2222
CC=mpicc python -m pip install --no-cache-dir --no-binary=h5py h5py --no-build-isolation
- name: Install Darshan
run: |
git submodule update --init
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/include/hdf5/openmpi/
export DARSHAN_INSTALL_PREFIX=$PWD/darshan_install
export DARSHAN_RUNTIME_CONFIG_ARGS="--with-jobid-env=NONE --enable-hdf5-mod --with-log-path-by-env=DARSHAN_LOGPATH"
darshan-test/automated/build-darshan.sh
- name: Install Darshan (non-MPI)
run: |
export DARSHAN_INSTALL_PREFIX=$PWD/darshan_nonmpi_install
export DARSHAN_RUNTIME_CONFIG_ARGS="--without-mpi --with-jobid-env=NONE --with-log-path-by-env=DARSHAN_LOGPATH"
darshan-test/automated/build-darshan.sh
- name: Install pydarshan
run: |
cd darshan-util/pydarshan
python -m pip install .
- name: Test with pytest
run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/darshan_install/lib
export DARSHAN_INSTALL_PATH=$PWD/darshan_install
export DARSHAN_NONMPI_INSTALL_PATH=$PWD/darshan_nonmpi_install
export DARSHAN_ROOT_PATH=$PWD
export HDF5_LIB=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so
python -m pytest darshan-test/python_runtime_tests.py