From 6355c4e56e7116c9a112adf1f1acf73eb0fea506 Mon Sep 17 00:00:00 2001 From: DONNOT Benjamin Date: Thu, 28 Nov 2024 15:59:43 +0100 Subject: [PATCH] improve CI and add python 3.13 Signed-off-by: DONNOT Benjamin --- .github/workflows/main.yml | 27 +++++++++++++++++++++++---- CHANGELOG.rst | 4 +++- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c61337e..585ad01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,6 +47,11 @@ jobs: abi: cp312, version: '3.12', } + - { + name: cp313, + abi: cp313, + version: '3.13', + } cont: - { @@ -163,7 +168,7 @@ jobs: - name: Upload wheel uses: actions/upload-artifact@v4 # v4 broken with: - name: lightsim2grid-wheel-linux-${{ matrix.python.name }}-${{ matrix.cont.name }} + name: lightsim2grid-wheel-linux-${{ matrix.python.name }}-${{ matrix.cont.name }}.* path: wheelhouse/*.whl - name: Upload source archive @@ -204,6 +209,10 @@ jobs: name: cp312, version: '3.12', } + - { + name: cp313, + version: '3.13', + } win_arch: - { name: "AMD64", @@ -306,7 +315,7 @@ jobs: - name: Upload wheel uses: actions/upload-artifact@v3 with: - name: lightsim2grid-wheel-win-${{ matrix.python.name }}-${{ matrix.win_arch.msvc}} + name: lightsim2grid-wheel-win-${{ matrix.python.name }}-${{ matrix.win_arch.msvc}}.* path: dist/*.whl macos_build_37_: @@ -340,6 +349,10 @@ jobs: name: cp312, version: '3.12', } + - { + name: cp313, + version: '3.13', + } runner: - { name: macos-13, @@ -459,7 +472,7 @@ jobs: - name: Upload wheel uses: actions/upload-artifact@v3 with: - name: lightsim2grid-wheel-darwin-${{ matrix.python.name }}-${{ matrix.runner.arch}} + name: lightsim2grid-wheel-darwin-${{ matrix.python.name }}-${{ matrix.runner.arch}}.* path: dist/*.whl exotic_build: @@ -506,6 +519,10 @@ jobs: name: cp312, version: '3.12', } + - { + name: cp313, + version: '3.13', + } exclude: - python: name: cp310 # because already done natively above @@ -517,6 +534,8 @@ jobs: name: macos-14 - python: name: cp312 # because already done natively above + - python: + name: cp313 # because already done natively above runner: name: macos-14 - python: @@ -574,7 +593,7 @@ jobs: - name: Upload wheel uses: actions/upload-artifact@v3 with: - name: lightsim2grid-wheel-${{ matrix.runner.whl_nm}}-${{ matrix.python.name }} + name: lightsim2grid-wheel-${{ matrix.runner.whl_nm}}-${{ matrix.python.name }}.* path: ./wheelhouse/*.whl package: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5beaee2..1849890 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -26,10 +26,12 @@ TODO: in `main.cpp` check the returned policy of pybind11 and also the `py::call TODO: a cpp class that is able to compute (DC powerflow) ContingencyAnalysis and TimeSeries using PTDF and LODF TODO: integration test with pandapower (see `pandapower/contingency/contingency.py` and import `lightsim2grid_installed` and check it's True) -[0.9.2.post2] 2024-11-28 +[0.9.2.post2] 2024-11-29 -------------------------- - [FIXED] The attribute `can_output_theta` (of base `Backend` class) was not set to `True` if using the pypowsybl loader. +- [FIXED] the github CI to work properly on many linux buit image +- [IMPROVED] build on python 3.13 [0.9.2.post1] 2024-11-28 --------------------------