From c1581b69f4f9b84f8fe7432d8bb87d85d739be00 Mon Sep 17 00:00:00 2001 From: Anton Larin Date: Mon, 4 Sep 2023 19:32:39 +0200 Subject: [PATCH] small optimization --- .github/workflows/pytest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b7d97f91..f191efe3 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -21,8 +21,9 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest and generate coverage report run: | - python -m pytest --cov=application --cov=scripts --cov=extensions --cov-report xml:/tmp/coverage.xml + python -m pytest --cov=application --cov=scripts --cov=extensions --cov-report=xml - name: Upload coverage reports to Codecov + if: github.event_name == 'pull_request' && matrix.python-version == '3.11' uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}