Add addon rest-api
#27
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: Copyright DB InfraGO AG and contributors | |
# SPDX-License-Identifier: CC0-1.0 | |
on: | |
push: | |
branches: | |
- main | |
- "*/v*.*.*" # Match version tags for releases | |
pull_request: | |
branches: | |
- main | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
name: Check code quality | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install pre-commit | |
run: python -m pip install pre-commit | |
- name: Run pre-commit | |
run: pre-commit run --all-files |