Skip to content

Commit

Permalink
test: code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Realiserad committed Aug 28, 2024
1 parent 3455b12 commit c406c5f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"github.vscode-github-actions",
"DavidAnson.vscode-markdownlint",
"tamasfe.even-better-toml",
"littlefoxteam.vscode-python-test-adapter"
"littlefoxteam.vscode-python-test-adapter",
"ryanluker.vscode-coverage-gutters"
],
"settings": {
// Disable key bindings Ctrl+P and Ctrl+Space used by fish-ai
Expand Down
6 changes: 4 additions & 2 deletions .devcontainer/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
pre-commit
coverage
pytest
pyfakefs

openai
google-generativeai
simple-term-menu
pytest
pyfakefs
iterfzf
hugchat
mistralai==0.4.2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ jobs:
pip install -r .devcontainer/requirements-dev.txt
- name: Run tests
run: |
pytest
coverage run --branch --include="src/fish_ai/*.py" -m pytest
coverage report
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ fish-ai.ini
*.egg-info/
build/
__pycache__
.coverage
lcov.info

0 comments on commit c406c5f

Please sign in to comment.