diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cbcfcf9..07aadec 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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() \ No newline at end of file diff --git a/.github/workflows/run_acceptance_tests.yml b/.github/workflows/run_acceptance_tests.yml new file mode 100644 index 0000000..77c2849 --- /dev/null +++ b/.github/workflows/run_acceptance_tests.yml @@ -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() \ No newline at end of file