From 18afb60f5be72d850a2f85f414fcce638d076230 Mon Sep 17 00:00:00 2001 From: ste1hi <1874076121@qq.com> Date: Sun, 28 Apr 2024 17:23:42 +0800 Subject: [PATCH] Use coverage --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae064ae..f452cf5 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,4 +63,9 @@ jobs: run: coverage run --source OiRunner -m unittest - name: Get report in ${{ matrix.python-version }} - run: coverage report \ No newline at end of file + run: coverage report + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file