Skip to content

Some new and some improved tensor operations #110

Some new and some improved tensor operations

Some new and some improved tensor operations #110

Workflow file for this run

name: build
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libsuitesparse-dev
python -m pip install --upgrade pip
# pip install .
pip install -e ".[sparse]"
# pip install flake8 pytest
# if [ -f requirements.txt ]; then pip install -r requirements-test.txt; fi
- name: pytest
run: |
pip install -e ".[sparse,test]"
python -m pytest -n auto --cov=optimism -Wignore
# we can also add the flag -n auto for parallel testing