@@ -74,54 +74,61 @@ jobs:
7474 env :
7575 COVERAGE_FILE : coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.pydantic-version }}
7676 CONTEXT : ${{ runner.os }}-py${{ matrix.python-version }}
77- - name : Store coverage files
78- uses : actions/upload-artifact@v4
77+ # - name: Store coverage files
78+ # uses: actions/upload-artifact@v4
79+ # with:
80+ # name: coverage-${{ matrix.python-version }}-${{ matrix.pydantic-version }}
81+ # path: coverage
82+ # include-hidden-files: true
83+ - uses : codecov/codecov-action@v5
7984 with :
80- name : coverage-${{ matrix.python-version }}-${{ matrix.pydantic-version }}
81- path : coverage
82- include-hidden-files : true
85+ fail_ci_if_error : true
86+ files : ./coverage.xml
87+ name : codecov-umbrella
88+ token : ${{ secrets.CODECOV_TOKEN }}
89+ verbose : true
8390
84- coverage-combine :
85- needs :
86- - test
87- runs-on : ubuntu-latest
88- steps :
89- - uses : actions/checkout@v4
90- - uses : actions/setup-python@v5
91- with :
92- python-version : ' 3.12'
93- - name : Setup uv
94- uses : astral-sh/setup-uv@v5
95- with :
96- version : " 0.4.15"
97- enable-cache : true
98- cache-dependency-glob : |
99- requirements**.txt
100- pyproject.toml
101- - name : Get coverage files
102- uses : actions/download-artifact@v4
103- with :
104- pattern : coverage-*
105- path : coverage
106- merge-multiple : true
107- - name : Install Dependencies
108- run : uv pip install -r requirements-tests.txt
109- - run : ls -la coverage
110- - run : coverage combine coverage
111- - run : coverage report
112- - run : coverage html --title "Coverage for ${{ github.sha }}"
113- - name : Store coverage HTML
114- uses : actions/upload-artifact@v4
115- with :
116- name : coverage-html
117- path : htmlcov
118- include-hidden-files : true
91+ # coverage-combine:
92+ # needs:
93+ # - test
94+ # runs-on: ubuntu-latest
95+ # steps:
96+ # - uses: actions/checkout@v4
97+ # - uses: actions/setup-python@v5
98+ # with:
99+ # python-version: '3.12'
100+ # - name: Setup uv
101+ # uses: astral-sh/setup-uv@v5
102+ # with:
103+ # version: "0.4.15"
104+ # enable-cache: true
105+ # cache-dependency-glob: |
106+ # requirements**.txt
107+ # pyproject.toml
108+ # - name: Get coverage files
109+ # uses: actions/download-artifact@v4
110+ # with:
111+ # pattern: coverage-*
112+ # path: coverage
113+ # merge-multiple: true
114+ # - name: Install Dependencies
115+ # run: uv pip install -r requirements-tests.txt
116+ # - run: ls -la coverage
117+ # - run: coverage combine coverage
118+ # - run: coverage report
119+ # - run: coverage html --title "Coverage for ${{ github.sha }}"
120+ # - name: Store coverage HTML
121+ # uses: actions/upload-artifact@v4
122+ # with:
123+ # name: coverage-html
124+ # path: htmlcov
125+ # include-hidden-files: true
119126
120127 # https://github.com/marketplace/actions/alls-green#why
121128 alls-green : # This job does nothing and is only used for the branch protection
122129 if : always()
123130 needs :
124- - coverage-combine
131+ - test
125132 runs-on : ubuntu-latest
126133 steps :
127134 - name : Decide whether the needed jobs succeeded or failed
0 commit comments