Skip to content

Commit

Permalink
Merge 22ecc2f into 6d193b1
Browse files Browse the repository at this point in the history
  • Loading branch information
weibullguy committed Dec 27, 2020
2 parents 6d193b1 + 22ecc2f commit c43aa97
Show file tree
Hide file tree
Showing 66 changed files with 1,926 additions and 1,369 deletions.
6 changes: 3 additions & 3 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ template: |
categories:
- title: 'Bug Fixes'
labels:
- 'type:bug'
- 'bug'
- title: 'Features'
labels:
- 'type:enhancement'
- 'enhancement'
- title: 'Maintenance'
labels:
- 'type:quality'
- 'quality'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
version-resolver:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update CHANGELOG.md

on:
pull_request:
types: [closed]
types: [ closed ]

jobs:
generate_change_log:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/chores.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Sundry Chores

on:
pull_request:
branches:
- release/v*
- master

jobs:
good_pr_title:
name: Ensure Semantic PR Title
runs-on: ubuntu-latest
steps:
- uses: aslafy-z/conventional-pr-title-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/create-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Create Issues from TODOs

on:
push:
branches:
- release/v*
- master

jobs:
todo_issue:
name: Create Issues from TODOs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: TODO to Issue
id: todo
uses: alstr/todo-to-issue-action@v2.0
with:
REPO: ${{ github.repository }}
BEFORE: ${{ github.event.before }}
SHA: ${{ github.sha }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL: "#// TODO:"
COMMENT_MARKER: "#//"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 changes: 0 additions & 60 deletions .github/workflows/develop.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update Documentation

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build_documentation:
name: Build RAMSTK documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"

- name: Commit RAMSTK Documentation
run: |
git clone https://github.com/ReliaQualAssociates/ramstk.git --branch gh-pages --single-branch gh-pages
cp -fr docs/_build/html/* gh-pages/
cd gh-pages
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -a -m "Update documentation"
- name: Push RAMSTK Documentation Changes
uses: ad-m/github-push-action@master
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
125 changes: 125 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Static Code Checks

on:
push:
branches:
- release/v*
- master
pull_request:
branches:
- release/v*
- master

jobs:
bandit:
name: Check for Security Vulnerabilities
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run bandit against repository
uses: jpetrucciani/bandit-check@master
with:
path: 'src/ramstk'

format-check:
name: Check Code Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check code format with docformatter and isort
uses: weibullguy/python-lint-plus@master
with:
python-root-list: "src/ramstk"
use-black: false
use-isort: true
use-docformatter: true
use-pycodestyle: false
use-pydocstyle: false
use-mypy: false
use-pylint: false
use-flake8: false
extra-black-options: ""
extra-isort-options: "--settings-file ./setup.cfg"
extra-docformatter-options: ""
extra-pycodestyle-options: ""
extra-pydocstyle-options: ""
extra-mypy-options: ""
extra-pylint-options: ""
extra-flake8-options: ""

style-check:
name: Check Code Styling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check code style with pycodestyle and pydocstyle
uses: weibullguy/python-lint-plus@master
with:
python-root-list: "src/ramstk"
use-black: false
use-isort: false
use-docformatter: false
use-pycodestyle: true
use-pydocstyle: true
use-mypy: false
use-pylint: false
use-flake8: false
extra-black-options: ""
extra-isort-options: ""
extra-docformatter-options: ""
extra-pycodestyle-options: "--config=./setup.cfg --count"
extra-pydocstyle-options: "--count"
extra-mypy-options: ""
extra-pylint-options: ""

type-check:
name: Check Code Typing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check code typing with mypy
uses: weibullguy/python-lint-plus@master
with:
python-root-list: "src/ramstk"
use-black: false
use-isort: false
use-docformatter: false
use-pycodestyle: false
use-pydocstyle: false
use-mypy: true
use-pylint: false
use-flake8: false
extra-black-options: ""
extra-isort-options: ""
extra-docformatter-options: ""
extra-pycodestyle-options: ""
extra-pydocstyle-options: ""
extra-mypy-options: "--config-file ./setup.cfg"
extra-pylint-options: ""
extra-flake8-options: ""

lint-check:
name: Check Code Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint code with pylint
uses: weibullguy/python-lint-plus@master
with:
python-root-list: "src/ramstk"
use-black: false
use-isort: false
use-docformatter: false
use-pycodestyle: false
use-pydocstyle: false
use-mypy: false
use-pylint: true
use-flake8: false
extra-black-options: ""
extra-isort-options: ""
extra-docformatter-options: ""
extra-pycodestyle-options: ""
extra-pydocstyle-options: ""
extra-mypy-options: ""
extra-pylint-options: "-j0 --rcfile=./setup.cfg --dummy-variables-rgx='__'"
extra-flake8-options: ""
57 changes: 0 additions & 57 deletions .github/workflows/pull_request.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Draft Release

on:
push:
branches:
- release/v*

jobs:
update_release_draft:
name: Update the Draft Release
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release_notes_preview:
name: Release Notes Preview
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- run: |
git fetch --prune --unshallow --tags
- name: Create Release Notes Preview
uses: snyk/release-notes-preview@v1.6.2
with:
releaseBranch: master
env:
GITHUB_PR_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c43aa97

Please sign in to comment.