Skip to content

Merge pull request #122 from Byte-Barn/feat/async #291

Merge pull request #122 from Byte-Barn/feat/async

Merge pull request #122 from Byte-Barn/feat/async #291

Workflow file for this run

name: Code Quality
on:
push:
paths:
- 'mpesakit/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
- '.github/workflows/code-quality.yml'
pull_request:
paths:
- 'mpesakit/**/*.py'
- 'tests/**/*.py'
- 'pyproject.toml'
- '.github/workflows/code-quality.yml'
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
run: pip install uv
- name: Create virtual environment
run: uv venv .venv
- name: Install dependencies
run: uv pip install -e '.[dev]'
- name: Run Ruff
run: uv run ruff check mpesakit && uv run ruff check tests
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
run: pip install uv
- name: Create virtual environment
run: uv venv .venv
- name: Install dependencies
run: uv pip install -e '.[dev]'
- name: Run Mypy
run: uv run mypy mpesakit
bandit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
run: pip install uv
- name: Create virtual environment
run: uv venv .venv
- name: Install dependencies
run: uv pip install -e '.[dev]'
- name: Run Bandit
run: uv run bandit -r mpesakit