Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

ci: Run unit tests with coverage report

Drikus Roor7c4a2c86ab78
diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml
index f75f93889a..a778d294bd 100644
--- a/.github/workflows/unit_tests.yml
+++ b/.github/workflows/unit_tests.yml
@@ -30,7 +30,12 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- - name: Run unittest tests
+ - name: Run unittest tests with coverage
continue-on-error: true
run: |
- python -m unittest discover -t . -s tests
+ coverage run -m unittest discover tests
+
+ - name: Generate coverage report
+ run: |
+ coverage report
+ coverage xml