From 3e0072a0d9ffebf104bf1f13b83c6ee92b5173ef Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Tue, 9 Jul 2024 18:15:25 -0500 Subject: [PATCH] Action test (#174) * listing debug information * ok actually printing wd * trying forward slashes * trying to join files independent of os slashes * removing csv file --- .github/workflows/smoke_test.yml | 11 ++++------- requirements.txt | 5 ----- src/acom_music_box/music_box_main.py | 4 ++-- 3 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/smoke_test.yml b/.github/workflows/smoke_test.yml index b90845ee..4fcece83 100644 --- a/.github/workflows/smoke_test.yml +++ b/.github/workflows/smoke_test.yml @@ -4,6 +4,7 @@ on: [push, workflow_dispatch] jobs: build: + continue-on-error: true strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] @@ -20,17 +21,13 @@ jobs: python-version: '3.9' cache: 'pip' - - run: pip install -r requirements.txt + - name: Install dependencies + run: python -m pip install --upgrade pip - name: Install this package run: pip install -e . - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - name: Run the smoke tests run: | - music_box configFile="tests\configs\analytical_config\my_config.json" outputDir="tests\configs\analytical_config" + music_box configFile=tests/configs/analytical_config/my_config.json outputDir=tests/configs/analytical_config diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index d32852a8..00000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -musica==0.6.1.dev0 -pandas -pipx -pytest -twine \ No newline at end of file diff --git a/src/acom_music_box/music_box_main.py b/src/acom_music_box/music_box_main.py index 1016dc4f..8035e88f 100644 --- a/src/acom_music_box/music_box_main.py +++ b/src/acom_music_box/music_box_main.py @@ -68,11 +68,11 @@ def main(): logger.info("myBox = {}".format(myBox)) # create solver and solve, writing output to requested directory - campConfig = os.path.dirname(musicBoxConfigFile) + "\\" + myBox.config_file + campConfig = os.path.join(os.path.dirname(musicBoxConfigFile), myBox.config_file) logger.info("CAMP config = {}".format(campConfig)) myBox.create_solver(campConfig) logger.info("myBox.solver = {}".format(myBox.solver)) - mySolution = myBox.solve(musicBoxOutputDir + "\\my_solution.csv") + mySolution = myBox.solve(os.path.join(musicBoxOutputDir, "mySolution.csv")) logger.info("mySolution = {}".format(mySolution)) logger.info("End time: {}".format(datetime.datetime.now()))