Fix potential runtime errors and resource leaks #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Style Check | |
on: [push, pull_request] | |
concurrency: | |
group: style-check-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
format-check: | |
name: Check Code Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Kconfiglib source code | |
uses: actions/checkout@v5 | |
- name: Set up Python | |
uses: actions/setup-python@v6 | |
with: | |
python-version: '3.12' | |
- name: Install tools | |
run: | | |
sudo apt-get install -q=2 shfmt python3-pip | |
pip3 install black==25.9.0 | |
- name: Run format check | |
run: | | |
.ci/check-newline.sh | |
.ci/check-format.sh | |
shell: bash |