2020 - main
2121 merge_group :
2222 types : [checks_requested]
23+ workflow_call :
2324
2425jobs :
2526 component-integration-tests :
@@ -28,13 +29,21 @@ jobs:
2829 run :
2930 shell : bash
3031 steps :
32+ - name : Checkout repository (pull_request_target via workflow_call)
33+ if : ${{ github.event_name == 'pull_request_target' }}
34+ uses : actions/checkout@v4
35+ with :
36+ ref : ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }}
37+ repository : ${{ github.event.pull_request.head.repo.full_name || github.repository }}
38+
3139 - name : Checkout repository
40+ if : ${{ github.event_name != 'pull_request_target' }}
3241 uses : actions/checkout@v4
3342
3443 - name : Setup Rust build environment
3544 uses : dtolnay/rust-toolchain@stable
3645 with :
37- toolchain : 1.83 .0
46+ toolchain : 1.90 .0
3847
3948 - name : Setup Bazel
4049 uses : bazel-contrib/setup-bazel@0.15.0
@@ -46,26 +55,44 @@ jobs:
4655
4756 - name : Build C++ test scenarios with Bazel
4857 run : |
49- bazel build --config=per-x86_64-linux //tests/cpp_test_scenarios:cpp_test_scenarios
58+ bazel build --config=per-x86_64-linux //tests/test_scenarios/cpp:test_scenarios
5059
5160 - name : Build Rust test scenarios with Bazel
5261 run : |
53- bazel build //tests/rust_test_scenarios:rust_test_scenarios
62+ bazel build //tests/test_scenarios/rust:test_scenarios
5463
5564 - name : Set up Python 3
5665 uses : actions/setup-python@v5
5766 with :
5867 python-version : ' 3.12'
5968
6069 - name : Set up Python virtual environment
61- working-directory : tests/python_test_cases
6270 run : |
6371 python -m venv .venv
6472 source .venv/bin/activate
65- pip install .
73+ pip install -r tests/test_cases/requirements.txt
6674
6775 - name : Run Python tests with pytest
68- working-directory : tests/python_test_cases
6976 run : |
7077 source .venv/bin/activate
71- python -m pytest
78+ python -m pytest --traces=all
79+
80+ - name : Run Python tests with bazel
81+ run : |
82+ bazel test //tests/test_cases:cit
83+
84+ - name : Prepare test reports
85+ if : always()
86+ # Creating tests-report directory
87+ # Follow Symlinks via '-L' to copy correctly
88+ # Copy everything inside the 'test-reports' folder
89+ run : |
90+ mkdir -p tests-report
91+ rsync -amL --include='*/' --include='test.xml' --include='test.log' --exclude='*' bazel-testlogs/ tests-report/
92+
93+ - name : Upload bundled test report
94+ if : always()
95+ uses : actions/upload-artifact@v4
96+ with :
97+ name : tests-report
98+ path : tests-report
0 commit comments