summaryrefslogtreecommitdiffstats
path: root/ansible_collections/ibm/spectrum_virtualize/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/ibm/spectrum_virtualize/.github
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/ibm/spectrum_virtualize/.github')
-rw-r--r--ansible_collections/ibm/spectrum_virtualize/.github/workflows/main.yml156
1 files changed, 156 insertions, 0 deletions
diff --git a/ansible_collections/ibm/spectrum_virtualize/.github/workflows/main.yml b/ansible_collections/ibm/spectrum_virtualize/.github/workflows/main.yml
new file mode 100644
index 000000000..bad1d8dd8
--- /dev/null
+++ b/ansible_collections/ibm/spectrum_virtualize/.github/workflows/main.yml
@@ -0,0 +1,156 @@
+name: ibm.spectrum_virtualize Ansible CI
+
+on:
+ push:
+ pull_request:
+ schedule:
+ - cron: '25 10 * * *'
+
+jobs:
+ sanity:
+ name: Sanity (${{ matrix.ansible }} on spectrum_virtualize
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ ansible:
+ - stable-2.9
+ - stable-2.10
+ - stable-2.11
+ - stable-2.12
+ - stable-2.13
+ - stable-2.14
+ python:
+ - '2.7'
+ - '3.8'
+ - '3.9'
+ exclude:
+ - ansible: stable-2.9
+ python: '3.9'
+ - ansible: stable-2.12
+ python: '2.7'
+ - ansible: stable-2.13
+ python: '2.7'
+ - ansible: stable-2.14
+ python: '2.7'
+ - ansible: stable-2.14
+ python: '3.8'
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+
+ - name: Set up Python${{ matrix.python }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python }}
+
+ - name: Upgrade PIP
+ run: python${{ matrix.python }} -m pip install --upgrade pip
+
+ - name: Install ansible (${{ matrix.ansible }})
+ run: python${{ matrix.python }} -m pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
+
+ - name: Make directory for ansible-test
+ run: |
+ pwd
+ mkdir -p ansible_collections/ibm/spectrum_virtualize
+ rsync -av . ansible_collections/ibm/spectrum_virtualize --exclude ansible_collections/ibm/spectrum_virtualize
+ - name: Run sanity tests spectrum_virtualize
+ run: ansible-test sanity -v --color --python ${{ matrix.python }} --docker --coverage
+ working-directory: ./ansible_collections/ibm/spectrum_virtualize
+
+ units:
+ name: Units (${{ matrix.ansible }} on spectrum_virtualize
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ ansible:
+ - stable-2.9
+ - stable-2.10
+ - stable-2.11
+ - stable-2.12
+ - stable-2.13
+ - stable-2.14
+ python:
+ - '2.7'
+ - '3.8'
+ - '3.9'
+ exclude:
+ - ansible: stable-2.9
+ python: '3.9'
+ - ansible: stable-2.12
+ python: '2.7'
+ - ansible: stable-2.13
+ python: '2.7'
+ - ansible: stable-2.14
+ python: '2.7'
+ - ansible: stable-2.14
+ python: '3.8'
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+
+ - name: Set up Python${{ matrix.python }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python }}
+
+ - name: Upgrade PIP
+ run: python${{ matrix.python }} -m pip install --upgrade pip
+
+ - name: Install ansible (${{ matrix.ansible }})
+ run: python${{ matrix.python }} -m pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
+
+ - name: Make directory for ansible-test
+ run: |
+ pwd
+ mkdir -p ansible_collections/ibm/spectrum_virtualize
+ rsync -av . ansible_collections/ibm/spectrum_virtualize --exclude ansible_collections/ibm/spectrum_virtualize
+
+ - name: Install dependencies
+ run: python${{ matrix.python }} -m pip install paramiko
+
+ - name: Run unit test cases
+ run: ansible-test units -v --color --python ${{ matrix.python }} --requirements --coverage
+ working-directory: ./ansible_collections/ibm/spectrum_virtualize
+
+ galaxy-importer:
+ name: Validate spectrum_virtualize with galaxy-importer tool.
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+
+ - name: Set up Python3
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.9
+
+ - name: Upgrade PIP
+ run: python3.9 -m pip install --upgrade pip
+
+ - name: Install ansible
+ run: python3.9 -m pip install ansible --disable-pip-version-check
+
+ - name: Install galaxy-importer tool
+ run: python3.9 -m pip install galaxy_importer --disable-pip-version-check
+
+ - name: Make directory to sync
+ run: |
+ pwd
+ mkdir -p ansible_collections/ibm/spectrum_virtualize
+ rsync -av . ansible_collections/ibm/spectrum_virtualize --exclude ansible_collections/ibm/spectrum_virtualize
+
+ - name: Build the tar package
+ run: ansible-galaxy collection build
+ working-directory: ./ansible_collections/ibm/spectrum_virtualize
+
+ - name: Run galaxy-importer tool on spectrum_virtualize
+ run: |
+ export GALAXY_IMPORTER_CONFIG=$(readlink -f galaxy-importer.cfg)
+ env | grep galaxy
+ python3.9 -m galaxy_importer.main ibm-spectrum_virtualize-*.tar.gz
+ working-directory: ./ansible_collections/ibm/spectrum_virtualize