Skip to content

[cleanup] Automate ruff formatting, fix ruff checks, isolate test_settings from local .env #62

[cleanup] Automate ruff formatting, fix ruff checks, isolate test_settings from local .env

[cleanup] Automate ruff formatting, fix ruff checks, isolate test_settings from local .env #62

Workflow file for this run

name: Run CI Checks
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
ci-checks:
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.11"
- name: Install uv
run: pip install uv
- name: Install dependencies
# This will install all dependencies from the workspace pyproject.toml
run: uv sync
- name: Check formatting with Ruff
# Run from the package directory
working-directory: packages/datacommons-mcp
# The --check flag will fail if the code is not formatted correctly
run: uv run ruff format --check
# TODO(clincoln8): Uncomment when pre-commit hooks are ready and repo is in healthy state.
# - name: Lint with Ruff
# working-directory: packages/datacommons-mcp
# run: uv run ruff check
- name: Run tests with pytest. Skip eval tests.
run: uv run --extra test pytest -k "not eval"