Add pytest to GH actions (#5) #41
This file contains 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
# SPDX-FileCopyrightText: 2024 David Mallasén Quintana | |
# SPDX-License-Identifier: LGPL-3.0-or-later | |
# Source: https://github.com/davidmallasen/arithmetic_units | |
name: Verible formatter check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
verible-format: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: chipsalliance/verible-formatter-action@21a1f8c4f634bcea8ce0bc20792b8f95e818f74c | |
with: | |
verible_version: "v0.0-3752-g8b64887e" | |
fail_on_formatting_suggestions: true | |
parameters: # These should be the same as in util/verible-format.py | |
--formal_parameters_indentation=indent | |
--named_parameter_indentation=indent | |
--named_port_indentation=indent | |
--port_declarations_indentation=indent | |
github_token: ${{ secrets.GITHUB_TOKEN }} |