Added ability for linsolve equations to have purely constant terms, which are just subracted off of the equated value when solving. #134
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: Run Tests | |
defaults: | |
run: | |
shell: bash -l {0} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.9, '3.10', '3.11', '3.12'] | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up Python ${{ matrix.python-version }} | |
uses: conda-incubator/[email protected] | |
with: | |
auto-update-conda: true | |
miniconda-version: "latest" | |
python-version: ${{ matrix.python-version }} | |
environment-file: ci/test_environment.yml | |
activate-environment: linsolve_tests | |
- name: Conda Info | |
run: | | |
conda info -a | |
conda list | |
PYVER=`python -c "import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"` | |
if [[ $PYVER != $PYTHON ]]; then | |
exit 1; | |
fi | |
- name: Install linsolve | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
- name: Run Tests | |
run: | | |
pytest --cov=linsolve --cov-report xml:coverage.xml | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.xml | |
flags: unittests | |
env_vars: PYTHON | |
verbose: true |