From 0f9b191b4a2b9e9986bc668f6496caf03543b199 Mon Sep 17 00:00:00 2001 From: codeskyblue Date: Thu, 4 Apr 2024 20:02:12 +0800 Subject: [PATCH] add codecov --- .github/workflows/main.yml | 6 ++++++ README.md | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7d713556..30efbeda 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,3 +61,9 @@ jobs: - name: Run tests with coverage run: | make cov + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: openatx/uiautomator2 diff --git a/README.md b/README.md index 36a41784..844bd004 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -# uiautomator2 [![PyPI](https://img.shields.io/pypi/v/uiautomator2.svg)](https://pypi.python.org/pypi/uiautomator2) ![PyPI](https://img.shields.io/pypi/pyversions/uiautomator2.svg) +# uiautomator2 +[![PyPI](https://img.shields.io/pypi/v/uiautomator2.svg)](https://pypi.python.org/pypi/uiautomator2) +![PyPI](https://img.shields.io/pypi/pyversions/uiautomator2.svg) +[![codecov](https://codecov.io/gh/openatx/uiautomator2/graph/badge.svg?token=d0ZLkqorBu)](https://codecov.io/gh/openatx/uiautomator2) QQ交流群: **815453846**