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 23, 2024
1 parent a511bc4 commit 1802c4a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
54 changes: 28 additions & 26 deletions .github/workflows/dependencies-ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
name: Update Dependency
name: Snapshot ci

on:
schedule:
- cron: '0 0 */2 * *' # Exécute tous les deux jours à minuit
workflow_dispatch: # Permet l'exécution manuelle
push:
branches:
# on all branches except main where full build will be run
- '*'
- '!main'

jobs:
build_dependencies:
name: Build OS ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]


steps:

#SETUP JDK
- name: Set up JDK 17
- uses: actions/setup-java@v4
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand Down Expand Up @@ -49,7 +50,7 @@ jobs:
repository: powsybl-dependencies
ref: main
- name: create versions file
run : touch version.txt
run : touch versions.txt

#BUILD CORE
- name: Checkout core-sources
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
- name: Build with Maven
run: |
mvn --batch-mode clean install
echo "powsybl-diagram.versio=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ../version.txt
echo "powsybl-diagram.version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ../version.txt
#BUILD ENTSOE
Expand All @@ -108,22 +109,6 @@ jobs:
mvn --batch-mode clean install
echo "powsybl-dynawo.version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> ../version.txt
#BUILD PYPOWSYBL
- name: Checkout pypowsybl-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


#UPDATE VERSION DEPENDCIES
- name: Update powsybl-dependencies
run: |
Expand All @@ -148,4 +133,21 @@ jobs:
echo "No changes were made to pom.xml"
else
echo "pom.xml has been updated"
fi
fi
#BUILD PYPOWSYBL
- name: Checkout pypowsybl-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


15 changes: 10 additions & 5 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Dev CI

on:
push:
branches:
#on:
# push:
# branches:
# on all branches except main where full build will be run
- '*'
- '!main'
# - '*'
# - '!main'


on:
schedule:
- cron: '0 0 */2 * *' # Exécute tous les deux jours à minuit
workflow_dispatch: # Permet l'exécution manuelle
jobs:
manylinux_build:
name: Build linux ${{ matrix.python.name }} wheel
Expand Down

0 comments on commit 1802c4a

Please sign in to comment.