Closed anirudTT closed 3 months ago
Our automated SPDX license verification process has discovered that the following files are missing a license header:
./model_demos/test.py
Please ensure each indicated file includes a valid SPDX license identifier. This is essential for maintaining licensing compliance. Your attention and cooperation in updating these files are greatly appreciated. Thank you.
Our automated SPDX license verification process has discovered that the following files are missing a license header:
./model_demos/tests/conftest.py
Please ensure each indicated file includes a valid SPDX license identifier. This is essential for maintaining licensing compliance. Your attention and cooperation in updating these files are greatly appreciated. Thank you.
Our automated SPDX license verification process has discovered that the following files are missing a license header:
./model_demos/tests/conftest.py
Please ensure each indicated file includes a valid SPDX license identifier. This is essential for maintaining licensing compliance. Your attention and cooperation in updating these files are greatly appreciated. Thank you.
GitHub Actions Workflow for License Header Verification
Summary
This PR introduces a GitHub Actions workflow, similar to the one used in benchmarking, to ensure that all Python files in the repository have the correct license headers. This workflow is essential for maintaining licensing compliance.
Changes Introduced
Addition of a License File:
Copyright Configuration File:
License Headers on Python Files:
Workflow Logic
The workflow uses the check-copyright tool, similar to the one used by the TT Metal team. The workflow follows these steps:
The workflow outputs something similar to this; which we aim to capture , clean up and then display as a PR comment:
An
awk
command is then used to capture the files that failed the copyright check, and GitHub Actions is used to post a comment on the PR.