Skip to content

Commit 5fab7a3

Browse files
authored
Add github workflow for acceptance test (ni#11)
- [x] This contribution adheres to [CONTRIBUTING.md](https://github.com/ni/nisync-python/blob/main/CONTRIBUTING.md). ### What does this Pull Request accomplish? (This PR is copied from [https://github.com/ni/nisync-python/pull/4](https://github.com/ni/nisync-python/pull/4)) This pull request is to: 1. Add github workflow for acceptance test ### What testing has been done? Signed-off-by: wchung <[email protected]>
1 parent f5252a2 commit 5fab7a3

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ jobs:
1414
name: Run unit tests
1515
uses: ./.github/workflows/run_unit_tests.yml
1616
needs: [build]
17+
run_acceptance_tests:
18+
name: Run acceptance tests
19+
uses: ./.github/workflows/run_acceptance_tests.yml
20+
needs: [build, run_unit_tests]
1721
report_test_results:
1822
name: Report test results
1923
uses: ./.github/workflows/report_test_results.yml
20-
needs: [run_unit_tests]
24+
needs: [run_unit_tests, run_acceptance_tests]
2125
if: always()
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run acceptance tests
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
jobs:
8+
run_acceptance_tests:
9+
name: Run acceptance tests
10+
runs-on:
11+
- self-hosted
12+
- windows
13+
- x64
14+
- rdss-nisyncbot-${{ matrix.configuration }}
15+
strategy:
16+
matrix:
17+
configuration: ["win-10-py32", "win-10-py64"]
18+
# Fail-fast skews the pass/fail ratio and seems to make pytest produce
19+
# incomplete JUnit XML results.
20+
fail-fast: false
21+
timeout-minutes: 90
22+
steps:
23+
- name: Check out repo
24+
uses: actions/checkout@v3
25+
- name: Install dependencies
26+
run: poetry install
27+
- name: Run acceptance tests for PXIe-6674T
28+
run: poetry run pytest --resource_name="6674T" --junitxml=test_results/acceptance-${{ matrix.configuration }}.xml
29+
- name: Upload test results
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: test_results_acceptance_${{ matrix.configuration }}
33+
path: test_results/*.xml
34+
if: always()

0 commit comments

Comments
 (0)