Skip to content

Commit

Permalink
Add clang-tidy lint action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Sep 7, 2024
1 parent 074edc6 commit 68a35db
Show file tree
Hide file tree
Showing 4 changed files with 667 additions and 653 deletions.
102 changes: 58 additions & 44 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,58 @@
name: Linters

on: [push]

jobs:
lint-version-python:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint flake8 pyright
- name: Analysing the code with pylint
run: |
scripts/lint.sh
lint-os-python:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint flake8 pyright
- name: Analysing the code with pylint
run: |
scripts/lint.sh
name: Linters

on: [push]

jobs:
lint-version-python:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint flake8 pyright
- name: Analysing the code with pylint
run: |
scripts/lint.sh
lint-os-python:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint flake8 pyright
- name: Analysing the code with pylint
run: |
scripts/lint.sh
lint-cpp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install clang-tidy -y
- name: Analysing the code with clang-tidy
shell: bash
run: |
set -eux pipefail
clang-tidy -checks=-*,clang-analyzer-*,-clang-analyzer-cplusplus* example/breeze_theme.hpp --
54 changes: 27 additions & 27 deletions .github/workflows/theme.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Theme

on: [push]

jobs:
theme-python:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
if [[ "$RUNNER_OS" == "Windows" ]]; then
python -m pip install winrt-Windows.UI.ViewManagement winrt-Windows.UI
fi
- name: Checking our Python imports.
run: |
scripts/theme.sh
name: Theme

on: [push]

jobs:
theme-python:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
if [[ "$RUNNER_OS" == "Windows" ]]; then
python -m pip install winrt-Windows.UI.ViewManagement winrt-Windows.UI
fi
- name: Checking our Python imports.
run: |
scripts/theme.sh
2 changes: 1 addition & 1 deletion example/breeze_theme.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,4 +461,4 @@ namespace breeze_stylesheets
{
return ::breeze_stylesheets::get_theme() == ::breeze_stylesheets::theme::light;
}
}
}
Loading

0 comments on commit 68a35db

Please sign in to comment.