From 0867747828abb069000e728b793a6e493901bd84 Mon Sep 17 00:00:00 2001 From: Rafael Marques Date: Sun, 14 Jul 2024 15:27:20 -0300 Subject: [PATCH] combine coverage --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12b27f3..a537468 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,8 +51,16 @@ jobs: - run: pip install -r requirements-test.txt - name: test - run: pytest --cov=pydantic_settings_aws --cov-report=xml + run: coverage run -m pytest --durations=10 + env: + COVERAGE_FILE: .coverage.${{ runner.os }}-py${{ matrix.python }}-without-dotenv + CONTEXT: ${{ runner.os }}-py${{ matrix.python }}-without-dotenv + + - run: coverage combine + - run: coverage xml - uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + env_vars: PYTHON,OS