Skip to content

Commit

Permalink
append coverage when running tests twice
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Mar 1, 2024
1 parent bdc680c commit 48b7310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
COLOR: 'yes'
run: |
pip uninstall --yes httpx
HTTP_BACKEND='aiohttp' make mototest
HTTP_BACKEND='aiohttp' FLAGS='--cov-append' make mototest
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11'
uses: codecov/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Some simple testing tasks (sorry, UNIX only).

FLAGS=
FLAGS?=
# ?= is assignment conditional on it not being set
HTTP_BACKEND?='all'

Expand All @@ -24,7 +24,7 @@ cov cover coverage: pre-commit
mototest:
docker pull alpine
docker pull lambci/lambda:python3.8
BOTO_CONFIG=/dev/null python -Wd -X tracemalloc=5 -X faulthandler -m pytest -vv -m moto -n auto --cov-report term --cov-report html --cov-report xml --cov=aiobotocore --cov=tests --log-cli-level=DEBUG --http-backend=$(HTTP_BACKEND) aiobotocore tests
BOTO_CONFIG=/dev/null python -Wd -X tracemalloc=5 -X faulthandler -m pytest -vv -m moto -n auto --cov-report term --cov-report html --cov-report xml --cov=aiobotocore --cov=tests --log-cli-level=DEBUG --http-backend=$(HTTP_BACKEND) $(FLAGS) aiobotocore tests
@echo "open file://`pwd`/htmlcov/index.html"

clean:
Expand Down

0 comments on commit 48b7310

Please sign in to comment.