Skip to content

Commit a99831b

Browse files
authored
Merge pull request #41 from Parallel-NetCDF/gh-action
add github workflow that checks sdist installation
2 parents 14bc618 + 975cdda commit a99831b

File tree

2 files changed

+37
-12
lines changed

2 files changed

+37
-12
lines changed

.github/workflows/pnetcdf_c_master.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,30 @@ jobs:
8888
- name: Install PnetCDF-Python
8989
run: |
9090
export CC=$MPICH_DIR/bin/mpicc
91-
pip install --no-build-isolation -e .
91+
pip install --verbose --no-build-isolation -e .
9292
9393
- name: Test PnetCDF-Python
9494
run: |
9595
export PATH=${MPICH_DIR}/bin:${PATH}
9696
make ptests
9797
98+
- name: Re-install PnetCDF-Python from source distribution
99+
run: |
100+
pip uninstall -y pnetcdf
101+
make install-clean
102+
export CC=$MPICH_DIR/bin/mpicc
103+
python setup.py sdist
104+
pip install --verbose dist/pnetcdf-*.tar.gz
105+
106+
- name: Test PnetCDF-Python
107+
run: |
108+
export PATH=${MPICH_DIR}/bin:${PATH}
109+
make ptests
98110
# - name: Tarball
99111
# run: |
100-
# export PATH=${NETCDF_DIR}/bin:${PATH}
101-
# python setup.py --version
112+
# export PATH=${NETCDF_DIR}/bin:${PATH}
113+
# python setup.py --version
102114
# check-manifest --version
103-
# check-manifest --verbose
104-
# pip wheel . -w dist --no-deps
105-
# twine check dist/*
115+
# check-manifest --verbose
116+
# pip wheel . -w dist --no-deps
117+
# twine check dist/*

.github/workflows/pnetcdf_c_official.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,20 @@ jobs:
8686
- name: Install PnetCDF-Python
8787
run: |
8888
export CC=$MPICH_DIR/bin/mpicc
89-
pip install --no-build-isolation -e .
89+
pip install --verbose --no-build-isolation -e .
90+
91+
- name: Test PnetCDF-Python
92+
run: |
93+
export PATH=${MPICH_DIR}/bin:${PATH}
94+
make ptests
95+
96+
- name: Re-install PnetCDF-Python from source distribution
97+
run: |
98+
pip uninstall -y pnetcdf
99+
make install-clean
100+
export CC=$MPICH_DIR/bin/mpicc
101+
python setup.py sdist
102+
pip install --verbose dist/pnetcdf-*.tar.gz
90103
91104
- name: Test PnetCDF-Python
92105
run: |
@@ -95,9 +108,9 @@ jobs:
95108
96109
# - name: Tarball
97110
# run: |
98-
# export PATH=${NETCDF_DIR}/bin:${PATH}
99-
# python setup.py --version
111+
# export PATH=${NETCDF_DIR}/bin:${PATH}
112+
# python setup.py --version
100113
# check-manifest --version
101-
# check-manifest --verbose
102-
# pip wheel . -w dist --no-deps
103-
# twine check dist/*
114+
# check-manifest --verbose
115+
# pip wheel . -w dist --no-deps
116+
# twine check dist/*

0 commit comments

Comments
 (0)