Skip to content

CI test for finch-tensor #867

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

Closed
wants to merge 1 commit into from
Closed
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
86 changes: 2 additions & 84 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,92 +7,10 @@ concurrency:
cancel-in-progress: true

jobs:
test:
strategy:
matrix:
os: ['ubuntu-latest']
python: ['3.10', '3.11', '3.12']
pip_opts: ['']
numba_boundscheck: [0]
include:
- os: macos-latest
python: '3.10'
- os: windows-latest
python: '3.10'
- os: ubuntu-latest
python: '3.10'
numba_boundscheck: 1
- os: ubuntu-latest
python: '3.10'
pip_opts: 'numpy<2'
fail-fast: false
runs-on: ${{ matrix.os }}
env:
PYTHON_VERSION: ${{ matrix.python }}
NUMBA_BOUNDSCHECK: ${{ matrix.numba_boundscheck }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2
with:
environment-file: ci/environment.yml
init-shell: >-
bash
cache-environment: true
cache-downloads: true
post-cleanup: 'all'
create-args: >-
python=${{ matrix.python }}
${{ matrix.pip_opts }}
- name: Install package
run: |
pip install -e '.[tests]'
- name: Run tests
run: ci/test_backends.sh
- uses: codecov/codecov-action@v5
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./**/coverage*.xml

examples:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Build and install Sparse
run: |
pip install -U setuptools wheel
pip install '.[finch]' scipy dask networkx graphblas-algorithms
- name: Run examples
run: ci/test_examples.sh

notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Build and install Sparse
run: |
pip install -U setuptools wheel
pip install '.[notebooks]'
- name: Run notebooks
run: ci/test_notebooks.sh

array_api_tests:
strategy:
matrix:
backend: ['Numba', 'Finch']
backend: ['Finch']
fail-fast: false
env:
ARRAY_API_TESTS_DIR: ${{ github.workspace }}/array-api-tests
Expand All @@ -113,7 +31,7 @@ jobs:
- name: Build and install Sparse
run: |
pip install -U setuptools wheel
pip install '.[finch]'
pip install finch-tensor
- name: Run the test suite
env:
SPARSE_BACKEND: ${{ matrix.backend }}
Expand Down
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_DIR/array_api_tests/" -v -c "$ARRAY_API_TESTS_DIR/pytest.ini" --ci --max-examples=2 --derandomize --disable-deadline --disable-warnings -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="finch" pytest "$ARRAY_API_TESTS_DIR/array_api_tests/" -v -c "$ARRAY_API_TESTS_DIR/pytest.ini" --ci --max-examples=2 --derandomize --disable-deadline --disable-warnings -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
Loading