diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc8d23f1..105347dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,11 @@ jobs: CODECOV_STATIC_TOKEN: ${{ secrets.CODECOV_STATIC_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Run tests and collect coverage - run: pytest --cov app + run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v4-beta + with: + flags: smart-tests + verbose: true env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/codecov.yml b/codecov.yml index 6f151f75..1ed5513f 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,6 +1,13 @@ -profiling: - critical_files_paths: - - app/calculator.py +flag_management: + individual_flags: + - name: smart-tests + carryforward: true + carryforward_mode: "labels" + statuses: + - type: "project" + - type: "patch" -comment: - show_critical_paths: true +cli: + plugins: + pycoverage: + report_type: "json"