-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: upgrade ansible version, address test and lint errors
- Loading branch information
1 parent
c15b472
commit 08ada53
Showing
216 changed files
with
4,394 additions
and
4,262 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
name: "Run integration tests for the cloud.google collection" | ||
--- | ||
name: Run integration tests for the cloud.google collection | ||
on: | ||
pull_request: {} | ||
push: | ||
branches: master | ||
env: | ||
GCP_SERVICE_ACCOUNT: "[email protected]" | ||
GCP_PROJECT: "ansible-gcp-ci" | ||
GCP_SERVICE_ACCOUNT: [email protected] | ||
GCP_PROJECT: ansible-gcp-ci | ||
GCP_FOLDER_ID: "542027184392" | ||
jobs: | ||
integration: | ||
|
@@ -31,7 +32,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.9' # this is the minimum version required for Ansible 2.13 | ||
python-version: "3.9" # this is the minimum version required for Ansible 2.13 | ||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
- name: Install ansible-base (${{ matrix.ansible_version }}) | ||
|
@@ -55,15 +56,15 @@ jobs: | |
env: | ||
CI_SERVICE_ACCOUNT_FILE_CONTENTS: ${{ secrets.CI_SERVICE_ACCOUNT_FILE_CONTENTS }} | ||
with: | ||
service_account: "$GCP_SERVICE_ACCOUNT" | ||
credentials_json: "${{ secrets.CI_SERVICE_ACCOUNT_FILE_CONTENTS }}" | ||
service_account: $GCP_SERVICE_ACCOUNT | ||
credentials_json: ${{ secrets.CI_SERVICE_ACCOUNT_FILE_CONTENTS }} | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
- name: Run cleanup | ||
run: | | ||
run: | | ||
./scripts/bootstrap-project.sh $GCP_PROJECT $GCP_SERVICE_ACCOUNT | ||
./scripts/cleanup-project.sh $GCP_PROJECT $GCP_FOLDER_ID | ||
# run tests | ||
- name: Run integration tests | ||
# Add the -vvv flag to print out more output | ||
run: ansible-test integration -v --color --python 3.9 --venv-system-site-packages | ||
run: ansible-test integration -v --color --python 3.9 --venv-system-site-packages |
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
--- | ||
name: Upload release to Automation Hub | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ansible | ||
- name: Build and publish | ||
env: | ||
ANSIBLE_AUTOMATION_HUB_API_KEY: ${{ secrets.ANSIBLE_AUTOMATION_HUB_API_KEY }} | ||
run: | | ||
ansible-galaxy collection build . | ||
ansible-galaxy collection publish *.tar.gz --api-key=$ANSIBLE_AUTOMATION_HUB_API_KEY -s=https://cloud.redhat.com/api/automation-hub/ | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.x | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ansible | ||
- name: Build and publish | ||
env: | ||
ANSIBLE_AUTOMATION_HUB_API_KEY: ${{ secrets.ANSIBLE_AUTOMATION_HUB_API_KEY }} | ||
run: | | ||
ansible-galaxy collection build . | ||
ansible-galaxy collection publish *.tar.gz --api-key=$ANSIBLE_AUTOMATION_HUB_API_KEY -s=https://cloud.redhat.com/api/automation-hub/ |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: "google.cloud.gcsfuse" | ||
--- | ||
name: google.cloud.gcsfuse | ||
on: | ||
push: | ||
paths: | ||
|
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,25 +1,25 @@ | ||
--- | ||
name: Upload release to Galaxy | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ansible | ||
- name: Build and publish | ||
env: | ||
ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} | ||
run: | | ||
ansible-galaxy collection build . | ||
ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.x | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ansible | ||
- name: Build and publish | ||
env: | ||
ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} | ||
run: | | ||
ansible-galaxy collection build . | ||
ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY |
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
Oops, something went wrong.