Skip to content

Commit

Permalink
Merge branch 'main' into 6.6.0-SNAPSHOT
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo KULESZA <hugo.kulesza@rte-france.com>
  • Loading branch information
HugoKulesza committed Dec 3, 2024
2 parents 37454ea + 454973a commit 1eb3192
Show file tree
Hide file tree
Showing 340 changed files with 11,070 additions and 2,435 deletions.
61 changes: 54 additions & 7 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ jobs:
manylinux_build:
name: Build linux ${{ matrix.python.name }} wheel
runs-on: ubuntu-latest
<<<<<<< HEAD
container: quay.io/pypa/manylinux2014_x86_64:2024-10-07-1887322
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
||||||| 4ebe183e
container: quay.io/pypa/manylinux2014_x86_64:2024-07-01-8dac23b
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
=======
container: quay.io/pypa/manylinux_2_28_x86_64:2024-11-16-d70d8cd
>>>>>>> main
strategy:
matrix:
python:
Expand All @@ -20,21 +28,24 @@ jobs:
}

steps:
- name: Install Linux Packages
run: dnf install -y wget

- name: Install Maven
run: |
curl --fail --silent --show-error https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -o /tmp/apache-maven-3.9.6-bin.tar.gz
wget -q https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -P /tmp
tar xf /tmp/apache-maven-*.tar.gz -C /opt
echo /opt/apache-maven-3.9.6/bin >> $GITHUB_PATH
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1.1.5 # !!! this is last version compatible with manylinux 2014
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
java-version: '17.0.12'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -130,17 +141,17 @@ jobs:
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
java-version: '17.0.12'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python.version }}

Expand Down Expand Up @@ -181,6 +192,7 @@ jobs:
cmake $GITHUB_WORKSPACE/cpp -DBUILD_PYPOWSYBL_JAVA=OFF -DPYPOWSYBL_JAVA_LIBRARY_DIR=$GITHUB_WORKSPACE/dist/lib -DPYPOWSYBL_JAVA_INCLUDE_DIR=$GITHUB_WORKSPACE/dist/include
cmake --build . --config Release
<<<<<<< HEAD
build:
name: Run SonarCloud analysis for Java code
runs-on: ubuntu-latest
Expand Down Expand Up @@ -210,3 +222,38 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

||||||| 4ebe183e



=======
build:
name: Run SonarCloud analysis for Java code
runs-on: ubuntu-latest

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

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Build with Maven (Ubuntu)
working-directory: ./java
run: >
mvn --batch-mode install
- name: Run SonarCloud analysis
working-directory: ./java
run: >
mvn --batch-mode -DskipTests sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=powsybl-ci-github
-Dsonar.projectKey=powsybl_pypowsybl-java
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

>>>>>>> main
53 changes: 27 additions & 26 deletions .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
manylinux_build:
name: Build linux ${{ matrix.python.name }} wheel
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64:2024-10-07-1887322
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
container: quay.io/pypa/manylinux_2_28_x86_64:2024-11-16-d70d8cd
strategy:
matrix:
python:
Expand Down Expand Up @@ -44,28 +42,31 @@ jobs:
abi: cp312,
version: '3.12'
}
- {
name: cp313,
abi: cp313,
version: '3.13'
}
# - {
# name: cp313,
# abi: cp313,
# version: '3.13'
# }

steps:
- name: Install Linux Packages
run: dnf install -y wget

- name: Install Maven
run: |
curl --fail --silent --show-error https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -o /tmp/apache-maven-3.9.6-bin.tar.gz
wget -q https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -P /tmp
tar xf /tmp/apache-maven-*.tar.gz -C /opt
echo /opt/apache-maven-3.9.6/bin >> $GITHUB_PATH
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1.1.5 # !!! this is last version compatible with manylinux 2014
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
java-version: '17.0.12'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -126,7 +127,7 @@ jobs:
run: make html doctest SPHINXOPTS="-W"

- name: Upload wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pypowsybl-wheel-linux-${{ matrix.python.name }}
path: wheelhouse/*.whl
Expand Down Expand Up @@ -174,26 +175,26 @@ jobs:
name: cp312,
version: '3.12',
}
- {
name: cp313,
version: '3.13',
}
# - {
# name: cp313,
# version: '3.13',
# }

steps:
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
java-version: '17.0.12'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python.version }}

Expand Down Expand Up @@ -227,7 +228,7 @@ jobs:
run: make html doctest SPHINXOPTS="-W"

- name: Upload wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pypowsybl-wheel-${{ matrix.config.name }}-${{ matrix.python.name }}
path: dist/*.whl
Expand All @@ -239,12 +240,12 @@ jobs:

steps:
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: download

- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pypowsybl-wheels
path: |
Expand All @@ -263,10 +264,10 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand All @@ -282,6 +283,6 @@ jobs:
mvn --batch-mode -DskipTests sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=powsybl-ci-github
-Dsonar.projectKey=powsybl_pypowsybl
-Dsonar.projectKey=powsybl_pypowsybl-java
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21 changes: 11 additions & 10 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jobs:
manylinux_build:
name: Build linux ${{ matrix.python.name }} wheel
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64:2024-10-07-1887322
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
container: quay.io/pypa/manylinux_2_28_x86_64:2024-11-16-d70d8cd
strategy:
matrix:
python:
Expand All @@ -25,21 +23,24 @@ jobs:
}

steps:
- name: Install Linux Packages
run: dnf install -y wget

- name: Install Maven
run: |
curl --fail --silent --show-error https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -o /tmp/apache-maven-3.9.6-bin.tar.gz
wget https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -P /tmp
tar xf /tmp/apache-maven-*.tar.gz -C /opt
echo /opt/apache-maven-3.9.6/bin >> $GITHUB_PATH
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1.1.5 # !!! this is last version compatible with manylinux 2014
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
java-version: '17.0.12'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -95,17 +96,17 @@ jobs:
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
java-version: '17.0.12'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python.version }}

Expand Down
Loading

0 comments on commit 1eb3192

Please sign in to comment.