-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: unify state and alg var in equations No longer explicitly distinguish between algebraic variables and state variables. The symbolic equation interfaces are simplified. * refactor: add JacBlock * test: add JacBlock tests * refactor: organize py printer src files * refactor: simplify codes and add inline printer tests * refactor: simplify module printer using JacBlock Add extra tests of c71c1ae * test: add python utility printer tests * fix: sort `Eqn.SYMBOLS` in lexicographic order Partially resolve #78 * test: add module printer tests * test: add module generator tests * test: add inline FDAE printer * tests: deploy cookbook tests * Git action: debug cookbook-practice.yml * update pyproject.toml * update publish-to-pypi.yml
- Loading branch information
Showing
52 changed files
with
2,745 additions
and
1,924 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Run tests in cookbook | ||
|
||
on: [push] | ||
|
||
jobs: | ||
tests_in_cookbook: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout Test Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'rzyu45/Solverz-Cookbook' | ||
ref: 'main' | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' # caching pip dependencies | ||
|
||
- name: Install Main Repository as Dependency using Git URL | ||
run: | | ||
pip install --upgrade pip setuptools wheel | ||
pip install git+https://github.com/${{github.repository}}.git@${{ github.sha }} | ||
- name: Run Tests | ||
run: | | ||
pytest |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish Python 🐍 distribution 📦 to PyPI | ||
name: Publish to Pypi | ||
|
||
on: push | ||
|
||
|
12 changes: 3 additions & 9 deletions
12
.github/workflows/python-package.yml → .github/workflows/run-tests.yml
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from Solverz.code_printer.python.inline.inline_printer import made_numerical | ||
from Solverz.code_printer.make_module import module_printer |
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.