-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (32 loc) · 1.23 KB
/
functional_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Functional Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- scenario_path: "conf/v0.6/general/test_scenario/nccl_test/test_scenario.toml"
expected_output_path: "ci_tools/functional_tests/scenarios_expected_outputs/nccl_test"
# Add your new test here
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
pip install -r requirements.txt
- name: Run tests
run: |
bash ci_tools/functional_tests/run_functional_test.sh ${{ matrix.scenario_path }} ${{ matrix.expected_output_path }}
if [ $? -ne 0 ]; then
echo "Test ${{ matrix.scenario_path }} failed"
exit 1
fi