This GitHub Actions performs a number of basic checks against a repository.
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
The following checks are performed.
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
Files can be excluded from the license checks using the exclude_license
input.
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
.
Checks that files have a SPDX-License-Identifier
value in the header.
Files can be excluded from the Python checks using the exclude_python
input.
Checks the shebang line is exactly #!/usr/bin/env python3
.
Checks the second line in a Python file has the coding: utf-8
statement (to
force Python and editors into UTF-8) mode.