mgeiger/gotime

View on GitHub
.github/workflows/static-analysis.yml

Summary

Maintainability
Test Coverage
# This Action will perform all static analysis on the code under question
# Static Analysis will consist of:
#   flake8 - Style Enforcement
#   mypy   - Type Checking
#   black  - Formatting Check
#   radon  - Cycloclometric Complexity
name: Static Analysis

on:
  push:
    branches:
      - "main"
  pull_request:
    branches:
      - "main"

jobs:
  static-analysis:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Environment setup
        run: echo "Running Setup"
      - name: Flake8
        run: echo "Executing Flake8 Checks"
        if: github.head_ref == 'main'