summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/mellanox/onyx/.github
diff options
context:
space:
mode:
Diffstat (limited to 'collections-debian-merged/ansible_collections/mellanox/onyx/.github')
-rw-r--r--collections-debian-merged/ansible_collections/mellanox/onyx/.github/workflows/ansible-test.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/mellanox/onyx/.github/workflows/ansible-test.yml b/collections-debian-merged/ansible_collections/mellanox/onyx/.github/workflows/ansible-test.yml
new file mode 100644
index 00000000..642de805
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/mellanox/onyx/.github/workflows/ansible-test.yml
@@ -0,0 +1,56 @@
+name: CI
+on:
+- pull_request
+
+jobs:
+ sanity:
+ runs-on: ubuntu-latest
+ steps:
+
+ - name: Check out code
+ uses: actions/checkout@v1
+ with:
+ path: ansible_collections/mellanox/onyx
+
+ - name: Set up Python 3.6
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.6
+
+ - name: Install ansible-base (devel)
+ run: pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
+
+ - name: Install ansible.netcommon
+ run: ansible-galaxy collection install ansible.netcommon -p ../../
+
+ - name: Run sanity tests
+ run: ansible-test sanity --docker -v --color --python 3.6
+
+ units:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v1
+ with:
+ path: ansible_collections/mellanox/onyx
+
+ - name: Set up Python 3.6
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.6
+
+ - name: Install ansible-base (devel)
+ run: pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
+
+ - name: Install ansible.netcommon
+ run: ansible-galaxy collection install ansible.netcommon -p ../../
+
+ - name: Run unit tests
+ run: ansible-test units --docker -v --color --python 3.6 --coverage
+
+ - name: Generate coverage report.
+ run: ansible-test coverage xml -v --requirements --group-by command --group-by version
+
+ - uses: codecov/codecov-action@v1
+ with:
+ fail_ci_if_error: false