Add test windows action #14
Workflow file for this run
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
name: Test runtime on Windows | |
on: | |
# execute on every PR made targeting the branches bellow | |
pull_request: | |
branches: | |
- main | |
- develop # can be removed on main merge | |
paths: # we only include paths critical for building to avoid unnecessary runs | |
- src/** | |
- include/** | |
- scripts/cmake/** | |
- test/** | |
- .github/workflows/** | |
- doc/** | |
- runtime/** | |
- docker/** | |
# execute on every push made targeting the branches bellow | |
push: | |
branches: | |
- main | |
- develop # can be removed on main merge | |
paths: # we only include paths critical for building to avoid unnecessary runs | |
- src/** | |
- include/** | |
- scripts/cmake/** | |
- test/** | |
- .github/workflows/** | |
- doc/** | |
- runtime/** | |
- docker/** | |
workflow_dispatch: # Allows manual triggering of the workflow | |
jobs: | |
build-windows: | |
runs-on: windows-2019 | |
env: | |
WORKING_PATH: "D:\\a" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Setup runtime | |
run: | | |
pip install asam-qc-runtime@git+https://github.com/asam-ev/qc-framework@develop#subdirectory=runtime | |
pip install asam-qc-opendrive@git+https://github.com/asam-ev/qc-opendrive@develop | |
pip install asam-qc-openscenarioxml@git+https://github.com/asam-ev/qc-openscenarioxml@develop | |
pip install asam-qc-otx@git+https://github.com/asam-ev/qc-otx@develop | |
shell: pwsh | |
- name: Execute checker bundles runtime | |
run: | | |
mkdir "$env:WORKING_PATH\test_output" | |
$env:ASAM_QC_FRAMEWORK_WORKING_DIR = "$env:WORKING_PATH\test_output" | |
qc_runtime --config="$env:WORKING_PATH\qc-framework\qc-framework\.github\workflows\windows-files\odr_config.xml" --manifest="$env:WORKING_PATH\qc-framework\qc-framework\.github\workflows\windows-manifest\framework.json" | |
Get-ChildItem "$env:ASAM_QC_FRAMEWORK_WORKING_DIR" | |
#Test-Path "$env:ASAM_QC_FRAMEWORK_WORKING_DIR\xodr_bundle_report.xqar" | |
if (Get-ChildItem "D:\\a\\*.xqar" -Recurse -ErrorAction SilentlyContinue) { Write-Host "Matching files exist." } else { Write-Host "No matching files found." } | |
shell: pwsh |