Skip to content

Commit

Permalink
Merge pull request #41 from Parallel-NetCDF/gh-action
Browse files Browse the repository at this point in the history
add github workflow that checks sdist installation
  • Loading branch information
wkliao authored Aug 9, 2024
2 parents 14bc618 + 975cdda commit a99831b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 12 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/pnetcdf_c_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,30 @@ jobs:
- name: Install PnetCDF-Python
run: |
export CC=$MPICH_DIR/bin/mpicc
pip install --no-build-isolation -e .
pip install --verbose --no-build-isolation -e .
- name: Test PnetCDF-Python
run: |
export PATH=${MPICH_DIR}/bin:${PATH}
make ptests
- name: Re-install PnetCDF-Python from source distribution
run: |
pip uninstall -y pnetcdf
make install-clean
export CC=$MPICH_DIR/bin/mpicc
python setup.py sdist
pip install --verbose dist/pnetcdf-*.tar.gz
- name: Test PnetCDF-Python
run: |
export PATH=${MPICH_DIR}/bin:${PATH}
make ptests
# - name: Tarball
# run: |
# export PATH=${NETCDF_DIR}/bin:${PATH}
# python setup.py --version
# export PATH=${NETCDF_DIR}/bin:${PATH}
# python setup.py --version
# check-manifest --version
# check-manifest --verbose
# pip wheel . -w dist --no-deps
# twine check dist/*
# check-manifest --verbose
# pip wheel . -w dist --no-deps
# twine check dist/*
25 changes: 19 additions & 6 deletions .github/workflows/pnetcdf_c_official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,20 @@ jobs:
- name: Install PnetCDF-Python
run: |
export CC=$MPICH_DIR/bin/mpicc
pip install --no-build-isolation -e .
pip install --verbose --no-build-isolation -e .
- name: Test PnetCDF-Python
run: |
export PATH=${MPICH_DIR}/bin:${PATH}
make ptests
- name: Re-install PnetCDF-Python from source distribution
run: |
pip uninstall -y pnetcdf
make install-clean
export CC=$MPICH_DIR/bin/mpicc
python setup.py sdist
pip install --verbose dist/pnetcdf-*.tar.gz
- name: Test PnetCDF-Python
run: |
Expand All @@ -95,9 +108,9 @@ jobs:
# - name: Tarball
# run: |
# export PATH=${NETCDF_DIR}/bin:${PATH}
# python setup.py --version
# export PATH=${NETCDF_DIR}/bin:${PATH}
# python setup.py --version
# check-manifest --version
# check-manifest --verbose
# pip wheel . -w dist --no-deps
# twine check dist/*
# check-manifest --verbose
# pip wheel . -w dist --no-deps
# twine check dist/*

0 comments on commit a99831b

Please sign in to comment.