feat: Added CI pipelines for dev branches and PR #5
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
| # Static Code Analysis, called when PR to main or push to feature/**, feat/**, fix/** branches. | ||
|
Check failure on line 1 in .github/workflows/static-code-analysis.yml
|
||
| name: Static Code Analysis | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| coverage_artifact: | ||
| required: true | ||
| type: boolean | ||
| jobs: | ||
| static-code-analysis: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
| - name: Run Static Code Analysis | ||
| run: uvx pre-commit run --all-files --show-diff-on-failure --color=always | ||
| - name: Run unit tests (with coverage report) | ||
| if: ${{ inputs.coverage_artifact }} | ||
| run: uv run pytest --cov=./src --cov-report=xml --cov-report=term | ||
| - name: Run unit tests (console-only coverage) | ||
| if: ${{ !inputs.coverage_artifact }} | ||
| run: uv run pytest --cov=./src --cov-report=term-missing | ||