Skip to content

Pu time increment call back into energy functions so that they can be… #31

Pu time increment call back into energy functions so that they can be…

Pu time increment call back into energy functions so that they can be… #31

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