summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cloud/common/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
commit7fec0b69a082aaeec72fee0612766aa42f6b1b4d (patch)
treeefb569b86ca4da888717f5433e757145fa322e08 /ansible_collections/cloud/common/.github
parentReleasing progress-linux version 7.7.0+dfsg-3~progress7.99u1. (diff)
downloadansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.tar.xz
ansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cloud/common/.github')
-rw-r--r--ansible_collections/cloud/common/.github/workflows/changelog.yml22
-rw-r--r--ansible_collections/cloud/common/.github/workflows/linters.yml16
-rw-r--r--ansible_collections/cloud/common/.github/workflows/sanity_and_units.yml172
-rw-r--r--ansible_collections/cloud/common/.github/workflows/unit-ansible-2.9.yml63
4 files changed, 273 insertions, 0 deletions
diff --git a/ansible_collections/cloud/common/.github/workflows/changelog.yml b/ansible_collections/cloud/common/.github/workflows/changelog.yml
new file mode 100644
index 000000000..40b5bccf9
--- /dev/null
+++ b/ansible_collections/cloud/common/.github/workflows/changelog.yml
@@ -0,0 +1,22 @@
+---
+name: CI
+
+concurrency:
+ group: changelog-${{ github.ref }}
+ cancel-in-progress: true
+
+on:
+ pull_request:
+ types:
+ - opened
+ - reopened
+ - labeled
+ - unlabeled
+ - synchronize
+ branches:
+ - main
+ - stable-*
+
+jobs:
+ changelog:
+ uses: ansible-network/github_actions/.github/workflows/changelog.yml@main \ No newline at end of file
diff --git a/ansible_collections/cloud/common/.github/workflows/linters.yml b/ansible_collections/cloud/common/.github/workflows/linters.yml
new file mode 100644
index 000000000..cafab80ae
--- /dev/null
+++ b/ansible_collections/cloud/common/.github/workflows/linters.yml
@@ -0,0 +1,16 @@
+---
+name: CI
+
+concurrency:
+ group: linters-${{ github.ref }}
+ cancel-in-progress: true
+
+on: # yamllint disable-line rule:truthy
+ pull_request:
+ branches:
+ - main
+ - stable-*
+
+jobs:
+ linters:
+ uses: ansible-network/github_actions/.github/workflows/tox-linters.yml@main \ No newline at end of file
diff --git a/ansible_collections/cloud/common/.github/workflows/sanity_and_units.yml b/ansible_collections/cloud/common/.github/workflows/sanity_and_units.yml
new file mode 100644
index 000000000..c2cc86756
--- /dev/null
+++ b/ansible_collections/cloud/common/.github/workflows/sanity_and_units.yml
@@ -0,0 +1,172 @@
+---
+name: CI
+
+concurrency:
+ group: sanity-units-${{ github.ref }}
+ cancel-in-progress: true
+
+on: # yamllint disable-line rule:truthy
+ pull_request:
+ branches:
+ - main
+ - stable-*
+ schedule:
+ - cron: '0 14 * * 1'
+
+jobs:
+ sanity:
+ uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
+ with:
+ matrix_include: "[]"
+ matrix_exclude: >-
+ [
+ {
+ "ansible-version": "stable-2.9",
+ "python-version": "3.9"
+ },
+ {
+ "ansible-version": "stable-2.9",
+ "python-version": "3.10"
+ },
+ {
+ "ansible-version": "stable-2.9",
+ "python-version": "3.11"
+ },
+ {
+ "ansible-version": "stable-2.12",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "stable-2.12",
+ "python-version": "3.11"
+ },
+ {
+ "ansible-version": "stable-2.13",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "stable-2.13",
+ "python-version": "3.11"
+ },
+ {
+ "ansible-version": "stable-2.14",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "stable-2.14",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "stable-2.15",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "stable-2.15",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "milestone",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "milestone",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "milestone",
+ "python-version": "3.9"
+ },
+ {
+ "ansible-version": "devel",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "devel",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "devel",
+ "python-version": "3.9"
+ }
+ ]
+ unit-source:
+ # Runs on ansible-2.12+
+ uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
+ with:
+ matrix_exclude: >-
+ [
+ {
+ "python-version": "3.11"
+ },
+ {
+ "ansible-version": "stable-2.12",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "stable-2.13",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "stable-2.12",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "stable-2.13",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "stable-2.14",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "stable-2.14",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "stable-2.15",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "stable-2.15",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "milestone",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "milestone",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "milestone",
+ "python-version": "3.9"
+ },
+ {
+ "ansible-version": "devel",
+ "python-version": "3.7"
+ },
+ {
+ "ansible-version": "devel",
+ "python-version": "3.8"
+ },
+ {
+ "ansible-version": "devel",
+ "python-version": "3.9"
+ }
+ ]
+ collection_pre_install: ''
+ all_green:
+ if: ${{ always() }}
+ needs:
+ - sanity
+ - unit-source
+ runs-on: ubuntu-latest
+ steps:
+ - run: >-
+ python -c "assert set([
+ '${{ needs.unit-source.result }}'
+ ]) == {'success'}"
+ - run: >-
+ python -c "assert '${{ needs.sanity.result }}'
+ in ['success', 'failure']"
diff --git a/ansible_collections/cloud/common/.github/workflows/unit-ansible-2.9.yml b/ansible_collections/cloud/common/.github/workflows/unit-ansible-2.9.yml
new file mode 100644
index 000000000..779d5474d
--- /dev/null
+++ b/ansible_collections/cloud/common/.github/workflows/unit-ansible-2.9.yml
@@ -0,0 +1,63 @@
+name: CI
+
+concurrency:
+ group: units-29-${{ github.ref }}
+ cancel-in-progress: true
+
+on: # yamllint disable-line rule:truthy
+ push:
+ branches:
+ - main
+ - stable-*
+ pull_request:
+ branches:
+ - main
+ - stable-*
+ schedule:
+ - cron: '0 14 * * 1'
+
+jobs:
+ units:
+ runs-on: ubuntu-20.04
+ name: unit-2.9
+ env:
+ ansible_version: stable-2.9
+ python_version: 3.7
+ steps:
+ - name: Checkout the collection repository
+ uses: ansible-network/github_actions/.github/actions/checkout_dependency@main
+ with:
+ path: ${{ env.source_directory }}
+
+ - name: Set up Python ${{ env.python_version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ env.python_version }}
+
+ - name: Install ansible-core (${{ env.ansible_version }})
+ run: python3 -m pip install https://github.com/ansible/ansible/archive/${{ env.ansible_version }}.tar.gz --disable-pip-version-check
+
+ - name: Read collection metadata from galaxy.yml
+ id: identify
+ uses: ansible-network/github_actions/.github/actions/identify_collection@main
+ with:
+ source_path: ${{ env.source_directory }}
+
+ - name: Build and install the collection
+ uses: ansible-network/github_actions/.github/actions/build_install_collection@main
+ with:
+ install_python_dependencies: true
+ source_path: ${{ env.source_directory }}
+ collection_path: ${{ steps.identify.outputs.collection_path }}
+ tar_file: ${{ steps.identify.outputs.tar_file }}
+ ansible_version: "${{ env.ansible_version }}"
+
+ - name: Print the ansible version
+ run: ansible --version
+
+ - name: Print the python dependencies
+ run: python3 -m pip list
+
+ - name: Run unit tests
+ run: python -m pytest tests/unit --showlocals
+ working-directory: ${{ steps.identify.outputs.collection_path }}