Skip to content

Commit

Permalink
ci debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lfkdev committed Jun 25, 2024
1 parent 060ee4d commit 7229721
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion tests/test_ansible_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7229721

Please sign in to comment.