Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows CI fixed and add basic import test step in CI #760

Merged
merged 9 commits into from
Jun 13, 2024
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
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

Loading