Skip to content

einsum via bmm: avoid einsum for transpose only, add tracing example #178

einsum via bmm: avoid einsum for transpose only, add tracing example

einsum via bmm: avoid einsum for transpose only, add tracing example #178

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
pull_request:
defaults:
run:
shell: bash -l {0}
jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# kahypar doesn't have a 3.12 build yet
python-version: ['3.9', '3.11']
env: [base]
include:
- os: macos-latest
python-version: '3.11'
env: mac
- os: windows-latest
python-version: '3.11'
env: win
- os: ubuntu-latest
python-version: '3.11'
env: minimal
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.20"
- name: Install python
run: uv python install ${{ matrix.python-version }}
- name: Setup uv project
run: uv sync
- name: Install dependencies
run: uv pip install -r ci/requirements/${{ matrix.env }}.txt
- name: Test with pytest
run: uv run pytest --cov=cotengra tests/ --cov-report=xml tests
- name: Report to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}