mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
remove references to personnal repo and add galaxy importer job (#626)
This commit is contained in:
30
.github/workflows/black.yml
vendored
30
.github/workflows/black.yml
vendored
@@ -14,4 +14,32 @@ on:
|
||||
|
||||
jobs:
|
||||
format:
|
||||
uses: abikouo/github_actions/.github/workflows/black.yml@automate_changes_a
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: checkout fork repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9'
|
||||
|
||||
- name: Install required python librairies
|
||||
run: pip install tox
|
||||
shell: bash
|
||||
|
||||
- name: Run tox validation
|
||||
run: tox -e black -vv
|
||||
shell: bash
|
||||
|
||||
- name: commit and push changes
|
||||
id: commit
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: 'automated changes - black formatting'
|
||||
file_pattern: '*.py'
|
||||
|
||||
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -20,8 +20,10 @@ on:
|
||||
jobs:
|
||||
changelog:
|
||||
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
|
||||
galaxy_importer:
|
||||
uses: ansible-network/github_actions/.github/workflows/galaxy_importer.yml@main
|
||||
linters:
|
||||
uses: abikouo/github_actions/.github/workflows/tox-linters.yml@tox_linters
|
||||
uses: ansible-network/github_actions/.github/workflows/tox-linters.yml@main
|
||||
sanity:
|
||||
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
|
||||
with:
|
||||
@@ -255,21 +257,21 @@ jobs:
|
||||
|
||||
- name: install kubernetes.core collection
|
||||
id: install-collection
|
||||
uses: abikouo/github_actions/.github/actions/build_install_collection@build_install_collection
|
||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
||||
with:
|
||||
install_python_dependencies: true
|
||||
source_path: ${{ env.source }}
|
||||
if: steps.read-targets.outputs.ansible_test_targets != ''
|
||||
|
||||
- name: install cloud.common collection
|
||||
uses: abikouo/github_actions/.github/actions/build_install_collection@build_install_collection
|
||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
||||
with:
|
||||
install_python_dependencies: true
|
||||
source_path: ${{ env.cloud_common }}
|
||||
if: steps.read-targets.outputs.ansible_test_targets != ''
|
||||
|
||||
- name: install ansible.posix collection
|
||||
uses: abikouo/github_actions/.github/actions/build_install_collection@build_install_collection
|
||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
||||
with:
|
||||
install_python_dependencies: true
|
||||
source_path: ${{ env.ansible_posix }}
|
||||
@@ -280,7 +282,7 @@ jobs:
|
||||
if: steps.read-targets.outputs.ansible_test_targets != ''
|
||||
|
||||
- name: Run integration tests
|
||||
uses: abikouo/github_actions/.github/actions/ansible_test_integration@ansible_test_integration_a
|
||||
uses: ansible-network/github_actions/.github/actions/ansible_test_integration@main
|
||||
with:
|
||||
collection_path: ${{ steps.install-collection.outputs.collection_path }}
|
||||
python_version: ${{ matrix.python-version }}
|
||||
|
||||
Reference in New Issue
Block a user