Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: add a CuPy CI run #251

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/array-api-tests-cupy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CuPy Array API Tests

on: [push, pull_request]

env:
PYTEST_ARGS: "--max-examples 200 -v -rxXfE --ci ${{ inputs.pytest-extra-args }} --hypothesis-disable-deadline"

permissions:
contents: read # to fetch code (actions/checkout)


jobs:
tests:
runs-on: ghcr.io/cirruslabs/ubuntu-runner-amd64-gpu:22.04
strategy:
matrix:
python-version: ['3.11']

steps:
- name: Checkout array-api-compat
uses: actions/checkout@v4
with:
path: array-api-compat

- name: Checkout array-api-tests
uses: actions/checkout@v4
with:
repository: data-apis/array-api-tests
submodules: 'true'
path: array-api-tests

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: run nvidia-smi
run: nvidia-smi

- name: run nvidia-smi --query
run: nvidia-smi --query

- name: Initialize submodules in -tests
run: |
cd array-api-tests
git submodule update --init

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt
python -m pip install cupy-cuda12x

- name: Run the array API testsuite (CuPy)
env:
ARRAY_API_TESTS_MODULE: array_api_compat.cupy
ARRAY_API_TESTS_VERSION: 2023.12
PYTEST_ARGS: "--max-examples 200 -v -rxXfE --ci --hypothesis-disable-deadline"
run: |
export PYTHONPATH="${GITHUB_WORKSPACE}/array-api-compat"
cd ${GITHUB_WORKSPACE}/array-api-tests
pytest array_api_tests/ --xfails-file ${GITHUB_WORKSPACE}/array-api-compat/cupy-xfails.txt ${PYTEST_ARGS}
13 changes: 0 additions & 13 deletions .github/workflows/array-api-tests-dask.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/array-api-tests-numpy-1-21.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/array-api-tests-numpy-1-26.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/array-api-tests-numpy-dev.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/workflows/array-api-tests-numpy-latest.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/array-api-tests-torch.yml

This file was deleted.

85 changes: 0 additions & 85 deletions .github/workflows/array-api-tests.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/dependabot-auto-merge.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/docs-build.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/docs-deploy.yml

This file was deleted.

Loading
Loading