Skip to content

Commit f7ef415

Browse files
Merge pull request codecov#162 from codecov/test
fix: move to use ATS
2 parents 229f151 + ed08830 commit f7ef415

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,29 @@ on: [push, pull_request]
33
jobs:
44
run:
55
runs-on: ubuntu-latest
6+
67
steps:
78
- name: Checkout
89
uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
912
- name: Set up Python 3.10
1013
uses: actions/setup-python@v4
1114
with:
1215
python-version: '3.10'
1316
- name: Install dependencies
1417
run: pip install -r requirements.txt
18+
- name: Run ATS
19+
uses: codecov/codecov-ats@v0
20+
env:
21+
CODECOV_STATIC_TOKEN: ${{ secrets.CODECOV_STATIC_TOKEN }}
22+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1523
- name: Run tests and collect coverage
16-
run: pytest --cov app
24+
run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }}
1725
- name: Upload coverage to Codecov
1826
uses: codecov/codecov-action@v4-beta
27+
with:
28+
flags: smart-tests
29+
verbose: true
1930
env:
2031
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
profiling:
2-
critical_files_paths:
3-
- app/calculator.py
1+
flag_management:
2+
individual_flags:
3+
- name: smart-tests
4+
carryforward: true
5+
carryforward_mode: "labels"
6+
statuses:
7+
- type: "project"
8+
- type: "patch"
49

5-
comment:
6-
show_critical_paths: true
10+
cli:
11+
plugins:
12+
pycoverage:
13+
report_type: "json"

0 commit comments

Comments
 (0)