Skip to content

Commit fcf9e10

Browse files
Coveralls for code coverage (#14)
1 parent c080cb0 commit fcf9e10

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/pytest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,7 @@ jobs:
5252
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}"
5353
GOOGLE_CSE_ID: "${{ secrets.GOOGLE_CSE_ID }}"
5454
run: |
55-
poetry run pytest -s -m mock_llm test/
55+
poetry run coverage run -m pytest -s -m mock_llm
56+
57+
- name: Coveralls
58+
uses: coverallsapp/github-action@v2

DEVELOPMENT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ https://packaging.python.org/en/latest/tutorials/packaging-projects/
6666
poetry config pypi-token.pypi "<your-token>"
6767
poetry config repositories.test-pypi https://test.pypi.org/legacy/
6868
poetry config pypi-token.test-pypi "<your-token>"
69+
70+
poetry version prerelease
71+
poetry build
6972
poetry publish -r test-pypi
7073
poetry publish
7174

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ pytest = "^8.0.2"
7070
setuptools = "^69.1.1"
7171
pytest-asyncio = "^0.23.5"
7272
build = "^1.1.1"
73-
coverage = "^7.4.3"
73+
coverage = "^6"
7474
tensorboard = "^2.16.2"
7575
twine = "^5.0.0"
7676
poetry-core = "^1.9.0"
7777
poetry = "^1.8.2"
78+
coveralls = "^3.3.1"

0 commit comments

Comments
 (0)