Skip to content

Commit

Permalink
Merge pull request #87 from senzing-garage/senzing-factory/build-reso…
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsam committed Jan 17, 2024
2 parents 8cad798 + be69864 commit ae315f0
Show file tree
Hide file tree
Showing 12 changed files with 111 additions and 60 deletions.
9 changes: 9 additions & 0 deletions .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Extends the default yamllint config by adjusting some options.
extends: default

rules:
comments-indentation: disable
line-length:
level: warning
allow-non-breakable-inline-mappings: true
truthy: disable
20 changes: 0 additions & 20 deletions .github/workflows/add-label-customer-submission.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/add-label-triage.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/add-labels-standardized.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'add labels standardized'

on:
issues:
types:
- opened
- reopened

jobs:
add-issue-labels:
permissions:
issues: write
secrets:
ORG_MEMBERSHIP_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }}
SENZING_MEMBERS: ${{ secrets.SENZING_MEMBERS }}
uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v1
19 changes: 19 additions & 0 deletions .github/workflows/add-to-project-g2-python-dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'add to project g2 python dependabot'

on:
pull_request:
branches: [main]

env:
CREATOR: ${{ github.event.pull_request.user.login }}

jobs:
add-pr-to-project:
if: ${{ github.actor == 'dependabot[bot]' && ( github.event.action == 'opened' || github.event.action == 'reopened' ) }}
secrets:
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/add-to-project.yaml@v1
with:
classic: false
org: ${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}
project-number: ${{ vars.SENZING_PROJECT_G2_PYTHON }}
18 changes: 18 additions & 0 deletions .github/workflows/add-to-project-g2-python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'add to project g2 python'

on:
issues:
types:
- opened
- reopened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: Assign issue to project
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_G2_PYTHON }}
github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }}
30 changes: 14 additions & 16 deletions .github/workflows/add-to-project-garage-dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
name: add-to-project-garage-dependabot.yaml
name: 'add to project garage dependabot'

on:
pull_request:
types:
- opened
- reopened
branches: [main]

env:
CREATOR: ${{ github.event.pull_request.user.login }}

jobs:
add-to-project:
name: Add dependabot pull request to project
runs-on: ubuntu-latest
steps:
- name: Assign pull request to project
env:
BOOL: ${{ contains( env.CREATOR, 'dependabot' ) }}
if: ${{ env.BOOL == 'true' }}
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/${{ env.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ env.SENZING_PROJECT_GARAGE}}
github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }}
add-pr-to-project:
if: ${{ github.actor == 'dependabot[bot]' && ( github.event.action == 'opened' || github.event.action == 'reopened' ) }}
secrets:
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/add-to-project.yaml@v1
with:
classic: false
org: ${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}
project-number: ${{ vars.SENZING_PROJECT_GARAGE }}
8 changes: 5 additions & 3 deletions .github/workflows/add-to-project-garage.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: add-to-project-garage.yaml
name: 'add to project garage'

on:
issues:
types:
- reopened
- opened
- reopened

jobs:
add-to-project:
name: Add issue to project
Expand All @@ -12,5 +14,5 @@ jobs:
- name: Assign issue to project
uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_GARAGE}}
project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_GARAGE }}
github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/docker-build-container.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: docker-build-container.yaml
name: 'docker build container'

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
docker-build-container:
runs-on: ubuntu-latest
steps:
- name: Build docker image
uses: senzing-factory/github-action-docker-buildx-build@latest
uses: senzing-factory/github-action-docker-buildx-build@v1
with:
image-repository: senzing/test-ground
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/lint-workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'lint workflows'

on:
push:
branches-ignore: [main]
pull_request:
branches: [main]

permissions:
contents: read
packages: read
statuses: write

jobs:
lint-workflows:
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v1
6 changes: 4 additions & 2 deletions .github/workflows/move-pr-to-done.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: move-pr-to-done.yaml
name: 'move pr to done'

on:
pull_request:
types: [closed]

jobs:
move-pr-to-done:
uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done.yaml@main
uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done.yaml@v1
secrets:
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
8 changes: 6 additions & 2 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: pylint.yaml
name: 'pylint'

on: [push]

jobs:
pylint:
runs-on: ubuntu-latest
Expand All @@ -12,10 +14,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
pylint "$(git ls-files '*.py')"

0 comments on commit ae315f0

Please sign in to comment.