-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #265 from qpv-research-group/pdd_sesame
Add Python-based PDD solver option and fix sign convention inconsistencies
- Loading branch information
Showing
47 changed files
with
2,617 additions
and
446 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
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [ "3.7", "3.8", "3.9", "3.10" ] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -53,13 +53,14 @@ jobs: | |
|
||
- name: Install Python dependecies | ||
run: | | ||
pip install pytest meson-python ninja cython numpy git+https://github.com/scientific-python/[email protected] | ||
python3 -m devpy install-dependencies -test-dep | ||
pip install numpy --config-settings=setup-args="-Dallow-noblas=true" | ||
pip install pytest meson-python ninja cython spin | ||
python3 -m spin install-dependencies -test-dep | ||
- name: Install S4 | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
pip install wheel | ||
pip install wheel setuptools | ||
git clone https://github.com/phoebe-p/S4 | ||
cd S4 | ||
make S4_pyext | ||
|
@@ -68,14 +69,14 @@ jobs: | |
- name: Build solcore | ||
run: | | ||
python -m devpy build -- -Dwith_pdd=true -Dinstall_test=true | ||
python -m spin build -- -Dwith_pdd=true -Dinstall_test=true | ||
- name: Unit and functional tests (MacOS and Linux) | ||
if: matrix.os != 'windows-latest' | ||
env: | ||
SOLCORE_SPICE: ngspice | ||
run: | | ||
python -m devpy test -- -r a -v --cov=solcore/ --ignore=solcore/tests/test_examples.py -n "auto" | ||
python -m spin test -- -r a -v --cov=solcore/ --ignore=solcore/tests/test_examples.py -n "auto" | ||
- name: Unit and functional tests (Windows) | ||
if: matrix.os == 'windows-latest' | ||
|
@@ -88,7 +89,7 @@ jobs: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
run: | | ||
python -m pip install codecov | ||
python -m devpy codecov | ||
python -m spin codecov | ||
test_examples: | ||
|
@@ -98,7 +99,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [ "3.7", "3.8", "3.9", "3.10" ] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -133,13 +134,13 @@ jobs: | |
|
||
- name: Install Python dependecies | ||
run: | | ||
pip install pytest meson-python ninja cython numpy git+https://github.com/scientific-python/[email protected] | ||
python3 -m devpy install-dependencies -test-dep | ||
pip install pytest meson-python ninja cython numpy spin | ||
python3 -m spin install-dependencies -test-dep | ||
- name: Install S4 | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
pip install wheel | ||
pip install wheel setuptools | ||
git clone https://github.com/phoebe-p/S4 | ||
cd S4 | ||
make S4_pyext | ||
|
@@ -148,16 +149,16 @@ jobs: | |
- name: Build solcore | ||
run: | | ||
python -m devpy build -- -Dwith_pdd=true -Dinstall_test=true | ||
python -m spin build -- -Dwith_pdd=true -Dinstall_test=true | ||
- name: Unit and functional tests (MacOS and Linux) | ||
if: matrix.os != 'windows-latest' | ||
env: | ||
SOLCORE_SPICE: ngspice | ||
run: | | ||
python -m devpy test -- -r a -v solcore/tests/test_examples.py -n "auto" | ||
python -m spin test -- -r a -v solcore/tests/test_examples.py -n "auto" | ||
# - name: Unit and functional tests (Windows) | ||
# if: matrix.os == 'windows-latest' | ||
# run: | | ||
# python -m devpy test -- -r a -v solcore/tests/test_examples.py | ||
# python -m spin test -- -r a -v solcore/tests/test_examples.py |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.