Skip to content

Commit 268bf0d

Browse files
test: Mark tests that require mapdl
1 parent f484a66 commit 268bf0d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Unit testing
6767
run: |
68-
python -m pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html
68+
python -m pytest -vx --cov=${{ env.PACKAGE_NAMESPACE }} --cov-report=term --cov-report=xml:.cov/coverage.xml --cov-report=html:.cov/html -m "not requires_mapdl"
6969
7070
- name: Upload coverage reports to Codecov
7171
uses: codecov/codecov-action@v5

tests/path/integration/test_integration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
)
4141

4242

43+
@pytest.mark.requires_mapdl
4344
@skip_if_not_ansys_local
4445
def test_find_mapdl():
4546
"""Test that the function finds the MAPDL executable and returns its path and version."""
@@ -48,12 +49,14 @@ def test_find_mapdl():
4849
assert ver != ""
4950

5051

52+
@pytest.mark.requires_mapdl
5153
@skip_if_not_ansys_local
5254
def test_get_available_ansys_installation():
5355
"""Test that the function returns a list of available Ansys installations."""
5456
assert get_available_ansys_installations()
5557

5658

59+
@pytest.mark.requires_mapdl
5760
@skip_if_not_ansys_local
5861
@pytest.mark.linux
5962
def test_save_mapdl_path():

0 commit comments

Comments
 (0)