Skip to content

feat: add checker for pin by id #39

feat: add checker for pin by id

feat: add checker for pin by id #39

Workflow file for this run

name: Lint and Test
on:
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies
run: uv sync --extra dev
- name: Type check with mypy
run: uv run mypy gavaconnect/
- name: Lint with ruff
run: |
uv run ruff check gavaconnect/ tests/
uv run ruff format --check gavaconnect/ tests/
- name: Security check with bandit
run: uv run bandit -r gavaconnect/
- name: Run tests with pytest
run: |
uv run pytest tests/ \
--cov=gavaconnect \
--cov-report=xml \
--cov-report=term-missing \
--cov-fail-under=80
- name: Upload coverage to Codecov
if: matrix.python-version == '3.13'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}