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
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ jobs:
name: Run unit tests
uses: ./.github/workflows/run_unit_tests.yml
needs: [build]
run_acceptance_tests:
name: Run acceptance tests
uses: ./.github/workflows/run_acceptance_tests.yml
needs: [build, run_unit_tests]
report_test_results:
name: Report test results
uses: ./.github/workflows/report_test_results.yml
needs: [run_unit_tests]
needs: [run_unit_tests, run_acceptance_tests]
if: always()
34 changes: 34 additions & 0 deletions .github/workflows/run_acceptance_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run acceptance tests

on:
workflow_call:
workflow_dispatch:

jobs:
run_acceptance_tests:
name: Run acceptance tests
runs-on:
- self-hosted
- windows
- x64
- rdss-nisyncbot-${{ matrix.configuration }}
strategy:
matrix:
configuration: ["win-10-py32", "win-10-py64"]
# Fail-fast skews the pass/fail ratio and seems to make pytest produce
# incomplete JUnit XML results.
fail-fast: false
timeout-minutes: 90
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Install dependencies
run: poetry install
- name: Run acceptance tests for PXIe-6674T
run: poetry run pytest --resource_name="6674T" --junitxml=test_results/acceptance-${{ matrix.configuration }}.xml
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test_results_acceptance_${{ matrix.configuration }}
path: test_results/*.xml
if: always()