Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
31 changes: 5 additions & 26 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,22 @@ jobs:
steps:
- name: Check out osc-simulator
uses: actions/checkout@v6
with:
path: osc-simulator

- name: Check out osc-validation
uses: actions/checkout@v6
with:
repository: PMSFIT/osc-validation
path: osc-validation

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"

- name: Install Poetry
run: pipx install "poetry>=2.0"

- name: Install osc-simulator
working-directory: osc-simulator
run: pip install -e ".[dev]"

- name: Install osc-validation
working-directory: osc-validation
run: poetry install --no-interaction
- name: Install Hatch
run: pipx install hatch

- name: Run osc-validation suite
id: run_validation
working-directory: osc-validation
run: |
set +e
poetry run pytest validation/scenario \
--tool OscSimulator \
--toolpath "$(which osc-simulator)" \
hatch env run -e validation validate -- \
--html=validation-report.html \
--junitxml=validation-results.xml \
--self-contained-html \
-v
--junitxml=validation-results.xml
pytest_exit_code=$?
python - <<'PY'
import os
Expand Down Expand Up @@ -96,7 +75,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v7
with:
path: osc-validation/validation-report.html
path: validation-report.html
archive: false
if-no-files-found: warn

Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dev = [
"types-lxml>=2024.0",
]
validation = [
"osc-validation @ git+https://github.com/PMSFIT/osc-validation.git@feature/reorganize-pytest-setup",
"osc-validation @ git+https://github.com/PMSFIT/osc-validation.git@feature/improve-checker-reporting",
"pytest-html>=4.2",
]

Expand Down Expand Up @@ -75,4 +75,5 @@ features = [
]

[tool.hatch.envs.validation.scripts]
validate = "osc-validate --tool OscSimulator --toolpath $(which osc-simulator) {args}"
validate = "osc-validate --tool OscSimulator --toolpath $(which osc-simulator) --test-profile val-profile.toml {args}"
validate-all = "osc-validate --tool OscSimulator --toolpath $(which osc-simulator) {args}"
15 changes: 15 additions & 0 deletions val-profile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[xfail]]
test = "scenario/triggers/val_condition_delay.py::*"
reason = "Condition Delay Divergeance"

[[xfail]]
test = "scenario/triggers/val_distance_*.py::*"
reason = "Unknown Condition Divergeance"

[[xfail]]
test = "scenario/triggers/val_speed_start_trigger.py::*"
reason = "Unknown Condition Divergeance"

[[xfail]]
test = "scenario/triggers/val_time_to_collision_start_trigger.py::*"
reason = "Unknown Condition Divergeance"
Loading