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

Initial version #1

Merged
merged 33 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
533174d
Initial version
geofjamg Oct 14, 2024
3dfee5a
Add GH CI
geofjamg Oct 14, 2024
ede7841
Fix
geofjamg Oct 14, 2024
72d1426
Change PyPowSybl branch
geofjamg Nov 8, 2024
3475507
Add node/breaker test case
geofjamg Nov 13, 2024
54cd74e
Support of branches open one side
geofjamg Nov 13, 2024
22298a4
Add more tests
geofjamg Nov 13, 2024
132d64e
Use powsybl core snapshot to build pypowsybl
geofjamg Nov 13, 2024
cd0f554
Upload artifact
geofjamg Nov 13, 2024
f400f17
Add pypowsybl wheel
geofjamg Nov 13, 2024
c7f671f
Fix CI
geofjamg Nov 13, 2024
f042091
Fix CI
geofjamg Nov 13, 2024
5bc5946
Fix CI
geofjamg Nov 13, 2024
711e834
Refactor node/breaker topo preparation
geofjamg Nov 13, 2024
2626190
Add more unit tests
geofjamg Nov 13, 2024
3d3ff36
Add licence
geofjamg Nov 13, 2024
7b4aa3c
Update pypowsybl
geofjamg Nov 14, 2024
efb0899
Improve connection / disconnection performance
geofjamg Nov 15, 2024
c8bd6c7
Add performance logging
geofjamg Nov 19, 2024
364ce89
Add performance logging
geofjamg Nov 19, 2024
ce9abc4
Remove useless bus update
geofjamg Nov 19, 2024
4331cc9
Improve apply performance by creating specific methods to get elment …
geofjamg Nov 19, 2024
05d0258
Multiple values update
geofjamg Nov 19, 2024
ebc361c
Fix typo
geofjamg Nov 19, 2024
ef9e2d4
Merge connected and disconnect methods
geofjamg Nov 19, 2024
4e02afa
Multiple values update for topo
geofjamg Nov 19, 2024
022feb4
Add an option to connect all elements to first bus
geofjamg Nov 26, 2024
da8690a
Add utility to write an observation as a json
geofjamg Nov 27, 2024
ae602ee
Fix
geofjamg Nov 27, 2024
1fd58fe
Try Ubuntu 20.04
geofjamg Nov 27, 2024
0b31a6d
Fix
geofjamg Nov 27, 2024
7482e9f
Fix
geofjamg Nov 27, 2024
2f29e54
Automatically get supported extensions
geofjamg Nov 27, 2024
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
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
pull_request:

jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: Install Ubuntu packages
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt update
sudo apt -y install maven python3.9 python3.9-dev python3.9-venv pipx
pipx install poetry

- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'

- name: Checkout sources
uses: actions/checkout@v4

# --> to remove when we will be able to a pypowsybl official release
- name: Checkout PowSyBl core snapshot sources
uses: actions/checkout@v4
with:
repository: powsybl/powsybl-core
ref: topology_model_conversion
path: powsybl-core

- name: Build and install PowSyBl core snapshot
run: mvn --batch-mode -DskipTests=true --file powsybl-core/pom.xml install
# <--

- name: Install dependencies
run: poetry install

- name: Build wheel
run: poetry build

- name: Run tests
run: poetry run pytest

- name: Copy PyPowSyBl wheel
run: cp $(find $HOME/.cache/pypoetry/artifacts/ -name pypowsybl*.whl) dist/

- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: pypowsybl2grid-wheels
path: dist/*.whl
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.idea
/dist
Loading
Loading