Реализация блока алгоритма интервального повторения #8
Workflow file for this run
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: Code Quality Check | |
| on: | |
| pull_request: | |
| branches: [ "dev", "main" ] | |
| jobs: | |
| # Golang check | |
| lint-go: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| working-directory: ./backend | |
| # C (Google Style) | |
| lint-c: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install clang-tools | |
| run: sudo apt-get update && sudo apt-get install -y clang-format clang-tidy cmake | |
| - name: Check C formatting (clang-format) | |
| run: | | |
| find ./algorithm -name "*.c" -o -name "*.h" | xargs clang-format --Werror --dry-run | |
| - name: Run C linter (clang-tidy) | |
| run: | | |
| clang-tidy ./algorithm/src/algorithm.c -- -I./algorithm/include | |
| clang-tidy ./algorithm/tests/test_algorithm.c -- -I./algorithm/include | |
| # Python Ruff | |
| lint-python: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Ruff | |
| run: pip install ruff | |
| - name: Run Ruff check and format | |
| run: | | |
| ruff check ./parser | |
| ruff format --check ./parser |