Skip to content

Commit

Permalink
Merge pull request #80 from ansys-internal/ci/fix_tests_workflow
Browse files Browse the repository at this point in the history
CI: fix non deterministic test failing
  • Loading branch information
SMoraisAnsys authored Nov 30, 2023
2 parents f2c9c78 + f3d3b6d commit acdc652
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/legacy_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,32 @@ jobs:
python-version: '3.10'
use-cache: false

- name: Create Python venv
run: |
python -m venv .venv
.\.venv\Scripts\Activate.ps1
- name: "Update pip"
run: python -m pip install -U pip
run: |
.\.venv\Scripts\Activate.ps1
python -m pip install -U pip
- name: "Install Python library"
run: python -m pip install .
run: |
.\.venv\Scripts\Activate.ps1
python -m pip install .
- name: "Install test requirements"
run: python -m pip install .[tests]
run: |
.\.venv\Scripts\Activate.ps1
python -m pip install .[tests]
- name: "Executing legacy unit tests"
run: |
pytest -m "legacy and unit" -n auto -v
.\.venv\Scripts\Activate.ps1
pytest -m "legacy and unit" -n auto --dist loadfile -v
- name: "Executing legacy system tests (distributing on multiple CPUs)"
run: |
pytest -m "legacy and system and not no_xdist" -n auto -v
.\.venv\Scripts\Activate.ps1
pytest -m "legacy and system and not no_xdist" -n auto --dist loadfile -v

0 comments on commit acdc652

Please sign in to comment.