Merge pull request #259 from SwayamInSync/cleanup-quaddtype #812
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: Numpy User DTypes CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install build and test dependencies | |
| run: | | |
| python -m pip install -U pip build pytest unyt wheel meson ninja meson-python patchelf pandas | |
| python -m pip install --pre --upgrade --timeout=60 --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy | |
| - name: Install asciidtype | |
| working-directory: asciidtype | |
| run: | | |
| CFLAGS="-Werror" python -m pip install . --no-build-isolation | |
| - name: Run asciidtype tests | |
| working-directory: asciidtype | |
| run: | | |
| pytest -vvv --color=yes | |
| - name: Install metadatadtype | |
| working-directory: metadatadtype | |
| run: | | |
| python -m build --no-isolation --wheel -Cbuilddir=build | |
| find ./dist/*.whl | xargs python -m pip install | |
| - name: Run metadatadtype tests | |
| working-directory: metadatadtype | |
| run: | | |
| pytest -vvv --color=yes | |
| - name: install mpfdtype | |
| working-directory: mpfdtype | |
| run: | | |
| sudo apt install libmpfr-dev -y | |
| CFLAGS="-Werror" python -m pip install . --no-build-isolation | |
| - name: Run mpfdtype tests | |
| working-directory: mpfdtype | |
| run: | | |
| pytest -vvv --color=yes | |
| - name: Install unytdtype | |
| working-directory: unytdtype | |
| run: | | |
| python -m build --no-isolation --wheel -Cbuilddir=build | |
| find ./dist/*.whl | xargs python -m pip install | |
| - name: Run unytdtype tests | |
| working-directory: unytdtype | |
| run: | | |
| pytest -vvv --color=yes | |
| # NOTE: quaddtype has moved to https://github.com/numpy/numpy-quaddtype | |
| - name: Install stringdtype | |
| working-directory: stringdtype | |
| run: | | |
| if [ -d "build/" ] | |
| then | |
| rm -r build | |
| fi | |
| meson setup build | |
| python -m build --no-isolation --wheel -Cbuilddir=build --config-setting='compile-args=-v' -Csetup-args="-Dbuildtype=debug" | |
| find ./dist/*.whl | xargs python -m pip install | |
| - name: Run stringdtype tests | |
| working-directory: stringdtype | |
| run: | | |
| pytest -s -vvv --color=yes | |
| pip uninstall -y pandas | |
| pytest -s -vvv --color=yes |