Skip to content

Latest commit

 

History

History

checks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

F4PGA/actions/checks@main - GitHub Action for basic F4PGA checks.

This GitHub Actions performs a number of basic checks against a repository.

Using

jobs:
  F4PGABasicChecks:
    runs-on: ubuntu-latest

    steps:
    - name: Getting code
      uses: actions/checkout@v2
      with:
        submodules: recursive

    - name: Getting code
      uses: F4PGA/actions/checks@main

Checks

The following checks are performed.

Files

The checks are currently performed on the following files;

  • Python files - *.py
  • Yaml files - *.yaml & *.yml
  • make files - Makefile and *.mk
  • Shell/Bash files - *.sh

License Checks

Excluding files

Files can be excluded from the license checks using the exclude_license input.

Third Party License Files

Check all directories in third party directories have license files. Looks for LICENSE, LICENCE or COPYING files.

Which directories are considered third party directories can be configured with third_party input, default is directories named third_party.

SPDX Identifiers in Text Files

Checks that files have a SPDX-License-Identifier value in the header.

Python Checks

Excluding files

Files can be excluded from the Python checks using the exclude_python input.

Shebang

Checks the shebang line is exactly #!/usr/bin/env python3.

UTF-8 Coding line

Checks the second line in a Python file has the coding: utf-8 statement (to force Python and editors into UTF-8) mode.