From adb038c58c4e3456a75f0ed2130dfe9e9ccf4d6b Mon Sep 17 00:00:00 2001 From: Tobias Bauriedel Date: Mon, 15 Jan 2024 14:49:13 +0100 Subject: [PATCH] test2 --- .github/workflows/test-influxdb2.yml | 16 +++++++++++----- plugins/modules/organize_bucket.py | 4 +++- requirements-test.txt | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-influxdb2.yml b/.github/workflows/test-influxdb2.yml index cd2ec7b..6fa3151 100644 --- a/.github/workflows/test-influxdb2.yml +++ b/.github/workflows/test-influxdb2.yml @@ -16,19 +16,21 @@ 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 @@ -36,6 +38,10 @@ jobs: 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 diff --git a/plugins/modules/organize_bucket.py b/plugins/modules/organize_bucket.py index 96f8791..b0d655b 100644 --- a/plugins/modules/organize_bucket.py +++ b/plugins/modules/organize_bucket.py @@ -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(): ''' diff --git a/requirements-test.txt b/requirements-test.txt index 7801267..2827f91 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,4 +1,4 @@ -ansible +ansible-core==2.16.2 ansible-lint molecule molecule-docker