Skip to content

Switches to UV (#257) #191

Switches to UV (#257)

Switches to UV (#257) #191

Workflow file for this run

name: Tests
on:
push:
branches: main
pull_request:
branches: main
jobs:
tests:
name: ${{ matrix.extras }}${{ matrix.python-extras && format('+{0}', matrix.python-extras) || '' }} / py${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.12"
extras: "test,lint"
- python-version: "3.14"
extras: "test,lint"
- python-version: "3.12"
extras: "test,lint,numpy"
- python-version: "3.12"
extras: "test,lint,numpy,dask"
- python-version: "3.13"
extras: "test,lint,numpy,dask,jax,sparse"
- python-version: "3.13"
extras: "test,lint,torch"
# - python-version: "3.12"
# extras: "test,lint"
# python-extras: "tensorflow"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install
run: uv pip install -e ".[${{ matrix.extras }}]" ${{ matrix.python-extras }}
- name: Test
run: uv run --no-sync pytest -v --cov=opt_einsum/ --cov-report=xml
- name: Coverage
run: uv run --no-sync coverage report
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml