forked from ansible-collections/community.clickhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clickhouse_client: add module, add tests, update the repo level docs
- Loading branch information
1 parent
957a5c5
commit 4f4cc0d
Showing
15 changed files
with
692 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
name: Plugins CI | ||
on: | ||
push: | ||
paths: | ||
- 'plugins/**' | ||
- 'tests/**' | ||
- '.github/workflows/ansible-test-plugins.yml' | ||
pull_request: | ||
paths: | ||
- 'plugins/**' | ||
- 'tests/**' | ||
- '.github/workflows/ansible-test-plugins.yml' | ||
schedule: | ||
- cron: '0 6 * * *' | ||
|
||
jobs: | ||
sanity: | ||
name: "Sanity (Python: ${{ matrix.python }}, Ansible: ${{ matrix.ansible }})" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ansible: | ||
- stable-2.14 | ||
- stable-2.15 | ||
- stable-2.16 | ||
- devel | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ansible_collections/community/clickhouse | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install ansible-base (${{ matrix.ansible }}) | ||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check | ||
|
||
- name: Run sanity tests | ||
run: ansible-test sanity --docker -v --color | ||
working-directory: ./ansible_collections/community/clickhouse | ||
|
||
units: | ||
runs-on: ubuntu-latest | ||
name: Units (Ⓐ${{ matrix.ansible }}) | ||
strategy: | ||
# As soon as the first unit test fails, | ||
# cancel the others to free up the CI queue | ||
fail-fast: true | ||
matrix: | ||
ansible: | ||
- stable-2.14 | ||
- stable-2.15 | ||
- stable-2.16 | ||
- devel | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ./ansible_collections/community/clickhouse | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install ansible-base (${{ matrix.ansible }}) | ||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check | ||
|
||
# Run the unit tests | ||
- name: Run unit test | ||
run: ansible-test units -v --color --docker --coverage | ||
working-directory: ./ansible_collections/community/clickhouse | ||
|
||
# ansible-test support producing code coverage date | ||
- name: Generate coverage report | ||
run: ansible-test coverage xml -v --requirements --group-by command --group-by version | ||
working-directory: ./ansible_collections/community/clickhouse | ||
|
||
# See the reports at https://codecov.io/gh/GITHUBORG/REPONAME | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: false | ||
|
||
integration: | ||
name: "Integration (Python: ${{ matrix.python }}, Ansible: ${{ matrix.ansible }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ansible: | ||
- stable-2.14 | ||
- stable-2.15 | ||
- stable-2.16 | ||
- devel | ||
python: | ||
- 3.9 | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ansible_collections/community/clickhouse | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install ansible-base (${{ matrix.ansible }}) | ||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check | ||
|
||
- name: Run integration tests | ||
run: ansible-test integration --docker ubuntu2204 -v --color --retry-on-error --continue-on-error --python ${{ matrix.python }} --diff --coverage | ||
working-directory: ./ansible_collections/community/clickhouse | ||
|
||
- name: Generate coverage report. | ||
run: ansible-test coverage xml -v --requirements --group-by command --group-by version | ||
working-directory: ./ansible_collections/community/clickhouse | ||
|
||
- uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Contributing | ||
|
||
Refer to the [Ansible community guide](https://docs.ansible.com/ansible/devel/community/index.html). | ||
Refer to the [Ansible Contributing guidelines](https://docs.ansible.com/ansible/devel/community/index.html) to learn how to contribute to this collection. | ||
|
||
Refer to the [review checklist](https://docs.ansible.com/ansible/devel/community/collection_contributors/collection_reviewing.html) when triaging issues or reviewing PRs. | ||
|
||
TODO: Put the collection-specific details in here if needed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Andersson007 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Maintaining this collection | ||
|
||
Refer to the [Maintainer guidelines](https://docs.ansible.com/ansible/devel/community/maintainers.html). | ||
|
||
TODO: Put the collection-specific details in here if needed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- clickhouse_client - add the module. |
Oops, something went wrong.