2021-04-01 11:56:01 +08:00
|
|
|
name: Check File Format and License
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
scancode_job:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Scan code format and license
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@master
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
|
|
|
|
- name: Check Format and License
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2021-04-06 10:39:22 +08:00
|
|
|
pip install click chardet PyYaml
|
2021-04-01 11:56:01 +08:00
|
|
|
python tools/file_check.py check 'https://github.com/RT-Thread/rt-thread' 'master'
|