diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 370ccfa..e11d79e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,10 @@ jobs: - name: Create config file run: | - echo "playbook_dir: ./test_playbooks" > config.yml - echo "inventory_file: ./test_inventory.ini" >> config.yml - echo "job_storage_dir: ./test_job_storage" >> config.yml + echo "playbook_dir: ./test_playbooks" > test-config.yml + + echo "inventory_file: ./test_inventory.ini" >> test-config.yml + echo "job_storage_dir: ./test_job_storage" >> test-config.yml mkdir test_playbooks test_job_storage touch test_inventory.ini @@ -41,7 +42,10 @@ jobs: echo " msg: OK" >> test_playbooks/test_playbook.yml - name: Set ANSIBLE_API_CONFIG - run: export ANSIBLE_API_CONFIG=$GITHUB_WORKSPACE/config.yml + run: export ANSIBLE_API_CONFIG=$GITHUB_WORKSPACE/test-config.yml + + - name: show structure + run: ls -R - name: Run tests run: python -m unittest discover tests diff --git a/tests/test_ansible_link.py b/tests/test_ansible_link.py index f2e1afb..588db2a 100644 --- a/tests/test_ansible_link.py +++ b/tests/test_ansible_link.py @@ -4,7 +4,7 @@ import os sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -from ansible_link.ansible_link import app, config, load_config +from ansible_link.ansible_link import app, load_config class TestAnsibleLink(unittest.TestCase): def setUp(self):