Skip to content

Commit

Permalink
Windows CI fixed and add basic import test step in CI (#760)
Browse files Browse the repository at this point in the history
* test ci

Signed-off-by: Etienne LESOT <[email protected]>

* Test python 3.10.

Signed-off-by: Bertrand Rix <[email protected]>

* Restore 3.8 and add standalone.

Signed-off-by: Bertrand Rix <[email protected]>

* Try suggested workaround.

Signed-off-by: Bertrand Rix <[email protected]>

* Revert "Try suggested workaround."

This reverts commit 914794a.

Signed-off-by: Bertrand Rix <[email protected]>

* basic import test in CI.

Signed-off-by: Bertrand Rix <[email protected]>

* Remove added line.

Signed-off-by: Bertrand Rix <[email protected]>

* Clean.

Signed-off-by: Bertrand Rix <[email protected]>

---------

Signed-off-by: Etienne LESOT <[email protected]>
Signed-off-by: Bertrand Rix <[email protected]>
Co-authored-by: Bertrand Rix <[email protected]>
  • Loading branch information
EtienneLt and obrix authored Jun 13, 2024
1 parent bd809a2 commit ff0a045
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
- name: Install wheel
run: pip3 install wheelhouse/*.whl --user

- name: Run basic pypowsybl import
working-directory: ./tests
run: python3 basic_import_test.py

- name: Run tests
working-directory: ./tests # Run in subdir to use installed lib, not sources
run: |
Expand Down Expand Up @@ -143,6 +147,10 @@ jobs:
shell: bash
run: python -m pip install dist/*.whl --user

- name: Run basic pypowsybl import
working-directory: ./tests
run: python3 basic_import_test.py

- name: Run tests
working-directory: ./tests
run: python3 -m pytest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
- name: Install wheel
run: pip3 install wheelhouse/*.whl --user

- name: Run basic pypowsybl import
working-directory: ./tests
run: python3 basic_import_test.py

- name: Run tests
working-directory: ./tests # Run in subdir to use installed lib, not sources
run: |
Expand Down Expand Up @@ -189,6 +193,10 @@ jobs:
shell: bash
run: python -m pip install dist/*.whl --user

- name: Run basic pypowsybl import
working-directory: ./tests
run: python3 basic_import_test.py

- name: Run tests
working-directory: ./tests
run: python3 -m pytest
Expand Down
2 changes: 2 additions & 0 deletions tests/basic_import_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import pypowsybl as pp
pp.print_version()
1 change: 0 additions & 1 deletion tests/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ def test_star_import():
assert sensitivity is not None
assert network is not None
assert loadflow is not None

0 comments on commit ff0a045

Please sign in to comment.