-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add osi-validation to CL2 and CL3 (#82)
* Add osi-validation to cl2 * Fix field check test, add CL3 tests and add custom rules * Replace test trace files * Fix input trace files * Add sensor id and mounting position to model output * Cache osi-validation in cl3 * Update behavior test trace file * Remove checking out branch of osi-validation * Update action versions * Correct osi fields test output trace file name * Update cache version in osi-validation build --------- Signed-off-by: ClemensLinnhoff <Clemens.Linnhoff@partner.bmw.de>
- Loading branch information
1 parent
c1b838b
commit 0210885
Showing
146 changed files
with
6,086 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build osi-validation | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build_esmini: | ||
name: Build osi-validation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cache osi-validation | ||
id: cache-osi-validation | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/osi-validation | ||
key: ${{ runner.os }}-osi-validation | ||
|
||
- name: Get osi-validation | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp | ||
env: | ||
GIT_CLONE_PROTECTION_ACTIVE: false | ||
run: git clone https://github.com/OpenSimulationInterface/osi-validation.git | ||
|
||
- name: Update Submodules | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: git submodule update --init | ||
|
||
- name: Build osi-validation | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: | | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install -r requirements_develop.txt | ||
cd open-simulation-interface && python3 -m pip install . && cd .. | ||
python3 -m pip install -r requirements.txt | ||
python3 rules2yml.py -d rules | ||
python3 -m pip install . | ||
- name: Generate default rules | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: | | ||
source .venv/bin/activate | ||
python3 rules2yml.py | ||
- name: Add Commit ID to Cache | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: | | ||
git rev-parse --short HEAD > commit-id.txt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
0210885
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-Linter Report⚠️
Some files did not pass the configured checks!
clang-tidy reports: 1 concern(s)
src/MySensorModel.cpp:17:25: warning: [cppcoreguidelines-avoid-non-const-global-variables]
Have any feedback or feature suggestions? Share it here.