Initial commit #7
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
| # Eggs.Stacktrace | |
| # | |
| # Copyright (c) 2026 Agustin Berge | |
| # | |
| # Distributed under the Boost Software License, Version 1.0. | |
| # See accompanying file LICENSE.txt or copy at | |
| # http://www.boost.org/LICENSE_1_0.txt | |
| name: format | |
| on: | |
| push: | |
| branches: [ main, feature/** ] | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| ascii-encoding: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Scan files for non-ASCII characters | |
| run: | | |
| if grep -rnP '[^\x00-\x7F]' --exclude-dir=.git .; then | |
| echo "error: non-ASCII characters found." | |
| exit 1 | |
| fi | |
| clang-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Run clang-format check | |
| uses: jidicula/clang-format-action@v4.16.0 | |
| with: | |
| clang-format-version: "22" | |
| check-path: "." | |
| gersemi: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Gersemi | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install gersemi[color] | |
| - name: Run Gersemi check | |
| run: gersemi --definitions . --check --diff --color . |