Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Continuous Integration
# This workflow runs on every push and pull request to the main branch.

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ci:
name: Continuous Integration
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.7.6"
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

- name: "Install the project dependencies"
run: uv sync --locked --all-extras --dev

- name: "Run the linter"
run: uv run ruff check

- name: "Run the tests"
run: uv run pytest
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"google-adk>=1.3.0",
"pytest>=8.4.0",
"ruff>=0.11.13",
]

[tool.ruff]
line-length = 100

[tool.ruff.lint]
select = ["E", "F", "W", "I"]

[dependency-groups]
dev = [
"pytest>=8.4.0",
"ruff>=0.11.13",
]
2 changes: 0 additions & 2 deletions tests/test_agent.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pytest

from git_diff_critique_agent import agent


Expand Down
10 changes: 8 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.