File tree Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change 5959 username : ${{ secrets.GH_USERNAME }}
6060 password : ${{ secrets.GH_TOKEN }}
6161 env :
62- ANSYS_LOCAL : true
6362 ON_UBUNTU : true
6463
6564 steps :
Original file line number Diff line number Diff line change 2222"""Module for integration tests."""
2323
2424import json
25- import os
2625from pathlib import Path
2726
2827import pytest
3534)
3635from ansys .tools .path .path import CONFIG_FILE
3736
38- skip_if_not_ansys_local = pytest .mark .skipif (
39- os .environ .get ("ANSYS_LOCAL" , "" ).upper () != "TRUE" , reason = "Skipping on CI"
40- )
41-
4237
4338@pytest .mark .requires_mapdl
44- @skip_if_not_ansys_local
4539def test_find_mapdl ():
4640 """Test that the function finds the MAPDL executable and returns its path and version."""
4741 bin_file , ver = find_mapdl ()
@@ -50,14 +44,12 @@ def test_find_mapdl():
5044
5145
5246@pytest .mark .requires_mapdl
53- @skip_if_not_ansys_local
5447def test_get_available_ansys_installation ():
5548 """Test that the function returns a list of available Ansys installations."""
5649 assert get_available_ansys_installations ()
5750
5851
5952@pytest .mark .requires_mapdl
60- @skip_if_not_ansys_local
6153@pytest .mark .linux
6254def test_save_mapdl_path ():
6355 """Test saving the MAPDL path to the configuration file."""
Original file line number Diff line number Diff line change 2121# SOFTWARE.
2222"""Module for testing metadata."""
2323
24- import os
25-
2624from ansys .tools import __version__
2725
2826
@@ -35,13 +33,3 @@ def test_pkg_version():
3533 read_version = importlib_metadata .version ("ansys-tools-common" )
3634
3735 assert __version__ == read_version
38-
39-
40- def test_cicd_envvar ():
41- """Test that the environment variable `ANSYS_LOCAL` exists and is set to True or False."""
42- if not os .environ .get ("ANSYS_LOCAL" , "" ):
43- # env var does not exists
44- raise RuntimeError (
45- "The env var 'ANSYS_LOCAL' does not exists. That env var is needed to tell Pytest which\n "
46- "tests should be run depending on if MAPDL is installed ('ANSYS_LOCAL'=True) or not."
47- )
You can’t perform that action at this time.
0 commit comments