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
13 changes: 4 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ jobs:
run: uv pip install --python .venv -e ".[dev]"
- name: Run tests with coverage
run: uv run --python .venv pytest --cov=cfold --cov-report=xml
- name: Generate coverage badge
run: uv run --python .venv coverage-badge -f -o coverage.svg
- name: Commit coverage badge
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add coverage.svg
git commit -m "Update coverage badge" || echo "No changes to commit"
git push
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Coverage](https://github.com/wr1/cfold/actions/workflows/tests.yml/coverage.svg)![Tests](https://github.com/wr1/cfold/actions/workflows/tests.yml/badge.svg)![Version](https://img.shields.io/github/v/release/wr1/cfold)
![Coverage](https://codecov.io/gh/wr1/cfold/branch/master/graph/badge.svg)![Tests](https://github.com/wr1/cfold/actions/workflows/tests.yml/badge.svg)![Version](https://img.shields.io/github/v/release/wr1/cfold)
# cfold

<!-- `cfold` is a command-line tool that helps you prepare codebases for interaction with Large Language Models (LLMs). It can `fold` a directory of code into a single JSON file and `unfold` a modified version back into a directory structure. -->
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dev = [
"ruff>=0.6.0",
"pytest>=7.1.3,<8",
"pytest-cov>5.0.0",
"coverage-badge>=1.0.0",
]

[tool.hatch.build.targets.sdist]
Expand Down