From 05dbe8a87dfa70310619c881bc996a8dd590e849 Mon Sep 17 00:00:00 2001 From: Patrick Gingras <775.pg.12@gmail.com> Date: Mon, 20 Dec 2021 16:35:17 -0500 Subject: [PATCH] add coveralls (#3) --- .coveragerc | 2 ++ .github/workflows/ci.yml | 8 +++++++- riotfile.py | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..d087092 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +include = asyncio_connection_pool/* diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 364cb07..da54fc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,4 +43,10 @@ jobs: - name: install riot run: pip install riot==0.4.0 - name: run tests - run: riot -v run --python=${{ matrix.python-version }} test + run: riot -v run --python=${{ matrix.python-version }} test -- --cov=asyncio_connection_pool --cov-branch --cov-config=.coveragerc + - name: upload coverage + run: pip install coveralls && coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + - name: print coverage + run: pip install coverage && coverage report diff --git a/riotfile.py b/riotfile.py index 44d053d..71f5bd0 100644 --- a/riotfile.py +++ b/riotfile.py @@ -10,6 +10,7 @@ pkgs={ "pytest": "==6.1.2", "pytest-asyncio": "==0.14.0", + "pytest-cov": latest, # extras_require "ddtrace": latest, "datadog": latest,