Skip to content

Update dependencies, fix warnings, and enhance docstrings with Google… #13

Update dependencies, fix warnings, and enhance docstrings with Google…

Update dependencies, fix warnings, and enhance docstrings with Google… #13

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- 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
- name: Install dependencies
run: |
uv sync --dev
- name: Lint with ruff
run: |
# Check for syntax errors and undefined names
uv run ruff check --output-format=github --select=E9,F63,F7,F82 .
# Run full linting
uv run ruff check .
- name: Format with ruff
run: |
uv run ruff format --check .
- name: Test with pytest
run: |
uv run pytest --cov=pyrb --cov-report=xml