Skip to content

Commit 4e9b439

Browse files
committed
👷 Update CI, enable old coverage at the same time
1 parent 05f19fd commit 4e9b439

File tree

1 file changed

+43
-41
lines changed

1 file changed

+43
-41
lines changed

.github/workflows/test.yml

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -74,55 +74,57 @@ 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
79-
# with:
80-
# name: coverage-${{ matrix.python-version }}-${{ matrix.pydantic-version }}
81-
# path: coverage
82-
# include-hidden-files: true
8377
- uses: codecov/codecov-action@v5
8478
with:
8579
fail_ci_if_error: true
8680
files: ./coverage.xml
8781
name: codecov-umbrella
8882
token: ${{ secrets.CODECOV_TOKEN }}
8983
verbose: true
84+
# TODO: if removing Smokeshow, and moving only to Codecov, remove this
85+
- name: Store coverage files
86+
uses: actions/upload-artifact@v4
87+
with:
88+
name: coverage-${{ matrix.python-version }}-${{ matrix.pydantic-version }}
89+
path: coverage
90+
include-hidden-files: true
9091

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
92+
# TODO: if removing Smokeshow, and moving only to Codecov, remove this
93+
coverage-combine:
94+
needs:
95+
- test
96+
runs-on: ubuntu-latest
97+
steps:
98+
- uses: actions/checkout@v4
99+
- uses: actions/setup-python@v5
100+
with:
101+
python-version: '3.12'
102+
- name: Setup uv
103+
uses: astral-sh/setup-uv@v5
104+
with:
105+
version: "0.4.15"
106+
enable-cache: true
107+
cache-dependency-glob: |
108+
requirements**.txt
109+
pyproject.toml
110+
- name: Get coverage files
111+
uses: actions/download-artifact@v4
112+
with:
113+
pattern: coverage-*
114+
path: coverage
115+
merge-multiple: true
116+
- name: Install Dependencies
117+
run: uv pip install -r requirements-tests.txt
118+
- run: ls -la coverage
119+
- run: coverage combine coverage
120+
- run: coverage report
121+
- run: coverage html --title "Coverage for ${{ github.sha }}"
122+
- name: Store coverage HTML
123+
uses: actions/upload-artifact@v4
124+
with:
125+
name: coverage-html
126+
path: htmlcov
127+
include-hidden-files: true
126128

127129
# https://github.com/marketplace/actions/alls-green#why
128130
alls-green: # This job does nothing and is only used for the branch protection

0 commit comments

Comments
 (0)