-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Internal] Added self-hosted runner in run system tests workflow (#479)
* Feat: Added workflows & tox file * Feat: Add run_unit_tests in CI.yml * Fix: corrected file name * Test: Install tox externally & run system tests * Fix: Added timeout * Test: Run python version individually * Revert: bring back tox changes * Fix: Remove no-extras in tox to ensure tests uses real drivers * Fix: Change RUNNERNAME * Fix: Deleted run_tests.yml * Fix: Refractored tox.ini * Fix: Added tox to dev dependencies * Fix: Remove unnecessary file name additions * Fix: Removed tox installation in run_system_tests.yml * Fix: refractor run_unit_test.yml * Fix: Removed ProgramW6432 in tox.ini * Fix: review comments update * Fix: poetry install with version 1.2.2 * Test: Let runner be more * Revert: Changed last commit * Test: Set ProgramW6432 variable * Fix: Do poetry install for tox * Test: Let runner be more * Revert: Revert back previous commit * Test: Without overriding ProgramW6432 in tox * Test: Override ProgramW6432 in tox * Fix: Pass the environment varaiables to tox * Fix: Removed unneccessary env passing in jobs * GitHub workflow: Revert unnecessary change * tox: Pass ProgramData env var --------- Co-authored-by: Brad Keryan <brad.keryan@ni.com>
- Loading branch information
1 parent
fd3af5a
commit f658411
Showing
6 changed files
with
2,177 additions
and
1,996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Run system tests | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run_system_tests: | ||
name: Run system tests | ||
runs-on: | ||
- self-hosted | ||
- windows | ||
- x64 | ||
- rdss-measlinkbot-win-10-${{ matrix.configuration }} | ||
strategy: | ||
matrix: | ||
configuration: ["py32", "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 system tests | ||
run: poetry run tox | ||
- name: Upload test results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test_results | ||
path: test_results/*.xml | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.