diff --git a/.github/workflows/dev-ci.yml b/.github/workflows/dev-ci.yml index 834534c409..9f76f14d4c 100644 --- a/.github/workflows/dev-ci.yml +++ b/.github/workflows/dev-ci.yml @@ -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: | @@ -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 diff --git a/.github/workflows/full-ci.yml b/.github/workflows/full-ci.yml index d3241347b0..956d0442e2 100644 --- a/.github/workflows/full-ci.yml +++ b/.github/workflows/full-ci.yml @@ -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: | @@ -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 diff --git a/tests/basic_import_test.py b/tests/basic_import_test.py new file mode 100644 index 0000000000..f82308c191 --- /dev/null +++ b/tests/basic_import_test.py @@ -0,0 +1,2 @@ +import pypowsybl as pp +pp.print_version() \ No newline at end of file diff --git a/tests/test_import.py b/tests/test_import.py index 4bc121a10c..6b493b40ef 100644 --- a/tests/test_import.py +++ b/tests/test_import.py @@ -11,4 +11,3 @@ def test_star_import(): assert sensitivity is not None assert network is not None assert loadflow is not None -