Skip to content

Commit

Permalink
Snapshot CI
Browse files Browse the repository at this point in the history
Signed-off-by: Leclerc Clement <clement.leclerc@rte-france.com>
  • Loading branch information
clementleclercRTE committed Sep 24, 2024
1 parent 4a36ab3 commit 13d9c10
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/dependencies-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
run : echo "CORE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV



#BUILD LOADFLOW
- name: Checkout loadflow-sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -123,22 +124,34 @@ jobs:
mvn versions:set-property -Dproperty=powsybl-diagram.version -DnewVersion=$DIAGRAM_VERSION -DgenerateBackupPoms=false
mvn versions:set-property -Dproperty=powsybl-dynawo.version -DnewVersion=$DYNAWO_VERSION -DgenerateBackupPoms=false
mvn versions:set-property -Dproperty=powsybl-entsoe.version -DnewVersion=$ENTSOE_VERSION -DgenerateBackupPoms=false
cat pom.xml || true
- name: Install powsybl-dependencies
run: mvn clean install


#BUILD PYPOWSYBL
- name: Checkout pypowsybl-sources
- name: Checkout sources
uses: actions/checkout@v4
with:
repository: powsybl/pypowsybl
ref: main
- name: Install and build
run: |
pip install --upgrade setuptools pip
pip install -r requirements.txt
pip install .
- name: Run test
run: pytest tests
submodules: true

- name: Install dependencies
run: pip3 install -r requirements.txt

- name: Build wheel
run: |
python3 setup.py bdist_wheel
auditwheel repair dist/*.whl
- 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: pytest


0 comments on commit 13d9c10

Please sign in to comment.