fix(dtype): accept any byte order for byte-order-irrelevant v2 dtype names #873
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
| # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
| name: GPU Test | |
| on: | |
| push: | |
| branches: [ main, 3.1.x ] | |
| pull_request: | |
| branches: [ main, 3.1.x ] | |
| workflow_dispatch: | |
| env: | |
| LD_LIBRARY_PATH: /usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64 | |
| # Use the uv from astral-sh/setup-uv instead of hatch's bundled (pyapp) uv. | |
| HATCH_ENV_TYPE_VIRTUAL_UV_PATH: uv | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: py=${{ matrix.python-version }} | |
| environment: | |
| name: codecov-upload | |
| deployment: false | |
| runs-on: gpu-runner | |
| strategy: | |
| matrix: | |
| python-version: ['3.12'] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 # grab all branches and tags | |
| persist-credentials: false | |
| # - name: cuda-toolkit | |
| # uses: Jimver/cuda-toolkit@v0.2.16 | |
| # id: cuda-toolkit | |
| # with: | |
| # cuda: '12.4.1' | |
| - name: Set up CUDA | |
| run: | | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb | |
| sudo dpkg -i cuda-keyring_1.1-1_all.deb | |
| sudo apt-get update | |
| sudo apt-get -y install cuda-toolkit-12-6 | |
| echo "/usr/local/cuda/bin" >> $GITHUB_PATH | |
| - name: GPU check | |
| run: | | |
| nvidia-smi | |
| echo $PATH | |
| echo $LD_LIBRARY_PATH | |
| nvcc -V | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0 | |
| - name: Install Hatch | |
| uses: pypa/hatch@f647ed70d49adb885f53a27d1c7f5bdaeacf2c60 | |
| with: | |
| version: '1.16.5' | |
| - name: Install just | |
| uses: extractions/setup-crate@7577c1bdf2d95e6d65d532788f35ed79d4b1dda2 # v2.0.1 | |
| with: | |
| repo: casey/just | |
| version: 1.58.0 | |
| # Two names for the same environment on purpose: `just setup` builds whatever | |
| # HATCH_ENV points at, while `just gpu` reads GPU_HATCH_ENV so that an | |
| # ambient HATCH_ENV can never redirect `pytest -m gpu` into a CPU environment. | |
| - name: Set Up Hatch Env | |
| env: | |
| HATCH_ENV: gputest.py${{ matrix.python-version }} | |
| run: | | |
| just setup | |
| - name: Run Tests | |
| env: | |
| GPU_HATCH_ENV: gputest.py${{ matrix.python-version }} | |
| run: | | |
| just gpu | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| flags: gpu | |
| verbose: true # optional (default = false) |