Skip to content

🐝 The First Self-Improving agents with RL / Prompting Optimization

Coveralls for code coverage (#14)

Dmitrii Khizbullinfcf9e10c0232
diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml
index 0726862..81486fa 100644
--- a/.github/workflows/pytest.yml
+++ b/.github/workflows/pytest.yml
@@ -52,4 +52,7 @@ jobs:
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}"
GOOGLE_CSE_ID: "${{ secrets.GOOGLE_CSE_ID }}"
run: |
- poetry run pytest -s -m mock_llm test/
+ poetry run coverage run -m pytest -s -m mock_llm
+
+ - name: Coveralls
+ uses: coverallsapp/github-action@v2
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md
index b3ca34c..106898a 100644
--- a/DEVELOPMENT.md
+++ b/DEVELOPMENT.md
@@ -66,6 +66,9 @@ https://packaging.python.org/en/latest/tutorials/packaging-projects/
poetry config pypi-token.pypi "<your-token>"
poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config pypi-token.test-pypi "<your-token>"
+
+poetry version prerelease
+poetry build
poetry publish -r test-pypi
poetry publish
diff --git a/pyproject.toml b/pyproject.toml
index 5eb0ea7..515680a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -70,8 +70,9 @@ pytest = "^8.0.2"
setuptools = "^69.1.1"
pytest-asyncio = "^0.23.5"
build = "^1.1.1"
-coverage = "^7.4.3"
+coverage = "^6"
tensorboard = "^2.16.2"
twine = "^5.0.0"
poetry-core = "^1.9.0"
poetry = "^1.8.2"
+coveralls = "^3.3.1"