Skip to content

Commit

Permalink
Bug-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Jan 9, 2025
1 parent 0aef791 commit c32c4af
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,25 +93,22 @@ jobs:
matrix:
backend: ['Numba', 'Finch']
fail-fast: false
env:
ARRAY_API_TESTS_DIR: ${{ github.workspace }}/array-api-tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Checkout array-api-tests
uses: actions/checkout@v4
with:
repository: data-apis/array-api-tests
ref: '33f2d2ea2f3dd2b3ceeeb4519d55e08096184149' # Latest commit as of 2024-05-29
submodules: 'true'
path: 'array-api-tests'
run: ci/clone_array_api_tests.sh
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install build and test dependencies from PyPI
run: |
pip install pytest-xdist -r array-api-tests/requirements.txt
pip install pytest-xdist -r ../array-api-tests/requirements.txt
- name: Build and install Sparse
run: |
pip install '.[finch]'
Expand Down
9 changes: 5 additions & 4 deletions ci/clone_array_api_tests.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env bash
set -euxo pipefail

if [ ! -d "../array-api-tests" ]; then
git clone https://github.com/data-apis/array-api-tests.git "../array-api-tests"
ARRAY_API_TESTS_DIR=${ARRAY_API_TESTS_DIR:-"../array-api-tests"}
if [ ! -d "$ARRAY_API_TESTS_DIR" ]; then
git clone --recursive https://github.com/data-apis/array-api-tests.git "$ARRAY_API_TESTS_DIR"
fi
git --git-dir="../array-api-tests/.git" fetch
git --git-dir="../array-api-tests/.git" checkout $(cat "ci/array-api-tests-rev.txt")
git --git-dir="$ARRAY_API_TESTS_DIR/.git" fetch
git --git-dir="$ARRAY_API_TESTS_DIR/.git" checkout $(cat "ci/array-api-tests-rev.txt")
Empty file modified ci/setup_env.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion ci/test_array_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ source ci/clone_array_api_tests.sh
if [ "${SPARSE_BACKEND}" = "Finch" ]; then
python -c 'import finch'
fi
ARRAY_API_TESTS_MODULE="sparse" pytest ../array-api-tests/array_api_tests/ -v -c ../array-api-tests/pytest.ini --ci --max-examples=2 --derandomize --disable-deadline -o xfail_strict=True -n auto --xfails-file ../sparse/ci/${SPARSE_BACKEND}-array-api-xfails.txt --skips-file ../sparse/ci/${SPARSE_BACKEND}-array-api-skips.txt
ARRAY_API_TESTS_MODULE="sparse" pytest $ARRAY_API_TESTS_DIR/array_api_tests/ -v -c $ARRAY_API_TESTS_DIR/pytest.ini --ci --max-examples=2 --derandomize --disable-deadline -o xfail_strict=True -n auto --xfails-file ../sparse/ci/${SPARSE_BACKEND}-array-api-xfails.txt --skips-file ../sparse/ci/${SPARSE_BACKEND}-array-api-skips.txt

0 comments on commit c32c4af

Please sign in to comment.