Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black and workflow rework #12

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bc3ee14
rds_instance: fix promotion_tier type (#1475)
gootdude May 4, 2023
f14f3ee
s3_bucket - Ensure public_access settings are configured before polic…
tremble May 4, 2023
c682bd1
Bulk migration to Python 3.6 f-strings (1) (#1483)
tremble May 4, 2023
1ea813c
Fstring cleanup (#1513)
tremble May 4, 2023
1f51ad4
Fix version_added (#1484)
alinabuzachis May 4, 2023
c75a6b4
Flag RSA example in unit test to be ignored by GitLeaks (it's a fake)…
tremble May 4, 2023
183e431
Update changelog with the amazon.aws 5.5.0 and 4.5.0 info (#1525)
alinabuzachis May 6, 2023
7b4c201
aws_ec2 inventory - migration to Python 3.6 f-strings (#1526)
tremble May 8, 2023
800ed8d
ec2_vpc_endpoint - test flake (#1531)
tremble May 8, 2023
b3ef6d4
Add flake8 and black to tox.ini (#1524)
GomathiselviS May 8, 2023
4b63a32
Bulk migration to Python 3.6 f-strings (3) (#1527)
tremble May 8, 2023
8c0880b
Fstring cleanup (#1529)
tremble May 8, 2023
6bfdbda
backup_selection* new modules (#1530)
alinabuzachis May 9, 2023
47d82a5
module_utils/backup - explicitly pass resource to get_backup_tags (#1…
tremble May 9, 2023
e4beee3
backup_selection_info - ensure result is returned as snake_case rath…
alinabuzachis May 9, 2023
6f5ebf4
Add backup_plan and backup_plan_info modules (#1446)
krisek May 9, 2023
d72b87f
Prep amazon.aws 6.0.0 release (#1537)
alinabuzachis May 9, 2023
c979afc
Add Github Action details to CI.md (#1519)
GomathiselviS May 10, 2023
dec608f
Fix 6.0.0 changelog formatting (#1542)
tremble May 11, 2023
b198721
Bump main to 7.0.0-dev0 (#1540)
tremble May 11, 2023
94bb14c
s3_bucket: fix VersionId==null when s3 object not versioned (#1538)
evohnave May 11, 2023
1f1ac75
ec2_snapshot, ec2_snapshot_info: Add support to modify snapshot share…
mandar242 May 11, 2023
6a6d41b
rds_instance: add support for CACertificateIdentifier to create/updat…
mandar242 May 15, 2023
9cbbe36
Add black and github workflow rework
alinabuzachis May 2, 2023
734472c
Run black on main only
alinabuzachis May 2, 2023
cc1708d
Remove black workflow
alinabuzachis May 16, 2023
ea09406
remove tests.yml
alinabuzachis May 16, 2023
6944c18
Update references
alinabuzachis May 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/all_green_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: all_green

concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true

on: # yamllint disable-line rule:truthy
pull_request:
types:
- opened
- reopened
- labeled
- unlabeled
- synchronize
branches:
- main
- 'stable-*'
tags:
- '*'

jobs:
changelog-and-linters:
uses: ./.github/workflows/changelog_and_linters.yml # use the callable changelog-and-linters job to run tests
sanity:
uses: ./.github/workflows/sanity.yml # use the callable sanity job to run tests
units:
uses: ./.github/workflows/units.yml # use the callable units job to run tests
all_green:
if: ${{ always() }}
needs:
- changelog-and-linters
- sanity
- units
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.changelog-and-linters.result }}',
'${{ needs.sanity.result }}',
'${{ needs.units.result }}'
]) == {'success'}"
2 changes: 1 addition & 1 deletion .github/workflows/ansible-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: needs_triage
labels: needs_triage
10 changes: 10 additions & 0 deletions .github/workflows/changelog_and_linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: changelog and linters

on: [workflow_call] # allow this workflow to be called from other workflows

jobs:
changelog:
uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
linters:
uses: ansible-network/github_actions/.github/workflows/tox-linters.yml@main
50 changes: 0 additions & 50 deletions .github/workflows/darker-pr.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
name: sanity tests

on: [workflow_call] # allow this workflow to be called from other workflows

jobs:
sanity:
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
with:
matrix_include: "[]"
matrix_exclude: >-
[
{
"ansible-version": "stable-2.9"
},
{
"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": "devel",
"python-version": "3.7"
},
{
"ansible-version": "devel",
"python-version": "3.8"
}
]
151 changes: 0 additions & 151 deletions .github/workflows/tests.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/units.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
name: unit tests

on: [workflow_call] # allow this workflow to be called from other workflows

jobs:
unit-source:
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": "devel",
"python-version": "3.7"
},
{
"ansible-version": "devel",
"python-version": "3.8"
}
]
collection_pre_install: ''
Loading