[test] add plotmesh tests, add hide option to plotmesh, bump 0.3.2 #49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build+Upload Python Wheels | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run_unit_test: | |
name: Test iso2mesh | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, macos-13, macos-14, windows-2019] | |
python_version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] | |
exclude: | |
- os: macos-14 | |
python_version: 3.7 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Install dependencies | |
run: python3 -m pip install numpy matplotlib jdata scipy | |
- name: Run tests | |
run: python3 -m unittest test.run_test | |
build_noarch_wheels: | |
name: Build iso2mesh wheels | |
runs-on: ubuntu-22.04 | |
needs: run_unit_test | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install build | |
run: python3 -m pip install --upgrade build | |
- name: Build wheel | |
run: python3 -m build | |
- name: Check If the Build Version Exists on PyPI | |
id: perform_pypi_upload_check | |
shell: bash | |
run: | | |
$GITHUB_WORKSPACE/.github/check-pypi-upload.sh | |
- name: Upload packages to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
if: ${{ github.actor == 'fangq' && steps.perform_pypi_upload_check.outputs.perform_pypi_upload == 1 && github.event_name != 'pull_request'}} | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
verify_metadata: false | |
verbose: true | |
skip_existing: true |