Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
tbauriedel committed Jan 15, 2024
1 parent c1e7aa2 commit adb038c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test-influxdb2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,32 @@ jobs:

strategy:
matrix:
distro: ['rockylinux9', 'ubuntu2204']
distro: ['ubuntu2204']
scenario: ['influxdb2']

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies ansible
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
- name: Install dependencies 2
run:
python3 -m pip install -r requirements-test.txt
- name: Install collection
run: |
mkdir -p ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE
cp -a ../ansible-collection-$COLLECTION_NAME ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
- name: List pip
run: |
pip3 list modules
- name: Test with molecule
run: |
ansible --version
Expand Down
4 changes: 3 additions & 1 deletion plugins/modules/organize_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# pylint: disable=missing-module-docstring

from ansible.module_utils.basic import AnsibleModule
from ansible_collections.tbauriedel.influxdb2.plugins.module_utils.utils import (Influx2Api) # pylint: disable=import-error
from ansible_collections.tbauriedel.influxdb2.plugins.module_utils.utils import (
Influx2Api,
)

def run_module():
'''
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ansible
ansible-core==2.16.2
ansible-lint
molecule
molecule-docker
Expand Down

0 comments on commit adb038c

Please sign in to comment.