Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest'] #, 'macos-latest'] #, 'windows-latest']
python-version: ['3.11'] # '3.10', '3.11', '3.12']
python-version: ['3.9'] # '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Python info
Expand All @@ -34,16 +34,28 @@ jobs:
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf https://github
python -m pip install --upgrade pip setuptools
python -m pip install .[dev,publishing]
pip install coveragepy-lcov 'coverage<7'
- name: Install EPANET quantum and set environment variables
run: |
git clone https://github.com/QuantumApplicationLab/EPANET
echo "EPANET_TMP=$RUNNER_TEMP" >> $GITHUB_ENV
echo "EPANET_QUANTUM=${{ github.workspace }}/EPANET" >> $GITHUB_ENV
echo "$GITHUB_ENV"
- name: Run unit tests
run: python -m pytest -v
- name: Verify that we can build the package
run: python -m build
- name: run code coverage
run: |
coverage3 run --source wntr_quantum --parallel-mode -m pytest -v
coverage3 combine
coverage3 report
- name: Convert to lcov
run: coveragepy-lcov --output_file_path coveralls.info
- name: Upload report to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coveralls.info
format: lcov

lint:
name: Linting build
Expand All @@ -52,10 +64,10 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.9
- name: Python info
shell: bash -e {0}
run: |
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/coverage.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/documentation.yml

This file was deleted.

256 changes: 0 additions & 256 deletions docs/notebooks/epanet_qubols.ipynb

This file was deleted.

293 changes: 0 additions & 293 deletions docs/notebooks/epanet_vqls.ipynb

This file was deleted.

385 changes: 0 additions & 385 deletions docs/notebooks/hhl_Net0.ipynb

This file was deleted.

379 changes: 0 additions & 379 deletions docs/notebooks/hhl_Net1Loop.ipynb

This file was deleted.

236 changes: 236 additions & 0 deletions docs/notebooks/linear_solver/hhl_solver.ipynb

Large diffs are not rendered by default.

233 changes: 233 additions & 0 deletions docs/notebooks/linear_solver/qubols_solver.ipynb

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions docs/notebooks/linear_solver/vqls_solver.ipynb

Large diffs are not rendered by default.

139 changes: 0 additions & 139 deletions docs/notebooks/networks/Net1Loops.inp

This file was deleted.

Loading
Loading