Fixed path to sim. Added Info job.

This commit is contained in:
Caleb Herpin 2021-07-27 18:33:20 -05:00
parent 825d13bd5e
commit 811f9c1f44
2 changed files with 8 additions and 3 deletions

View File

@ -134,6 +134,12 @@ jobs:
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
- name: Info
run: |
pwd
echo $TEST
env:
TEST: Hello World!
- name: Update Package Manager
run: ${{matrix.conf_pkg}}
- name: Install Dependencies
@ -158,6 +164,6 @@ jobs:
. .venv/bin/activate
./run_tests.py
env:
TRICK_HOME: "../../../../"
TRICK_HOME: "/"
- name: Test
run: make test

View File

@ -25,14 +25,13 @@ class Params:
if not self.__trick_home:
print("ERROR:", "TRICK_HOME not found")
# self.__trick_home = None
self.__path_to_sim = os.path.join(self.get_trick_home(), "trick_sims", "Cannon", "SIM_cannon_numeric") #TODO: Make the getter do this operation
self.__input_folder = "RUN_test"
self.__test_input_file = f"tmp_input_for_test.py"
def get_trick_home(self):
return self.__trick_home
def get_path_to_sim(self):
return self.__path_to_sim
return os.path.join(self.get_trick_home(), "trick_sims", "Cannon", "SIM_cannon_numeric")
def get_input_folder(self):
return self.__input_folder
def get_test_input_file(self):