Skip to content

Commit

Permalink
Merge pull request #162 from codecov/test
Browse files Browse the repository at this point in the history
fix: move to use ATS
  • Loading branch information
thomasrockhu-codecov authored Nov 13, 2023
2 parents 229f151 + ed08830 commit f7ef415
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,29 @@ on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run ATS
uses: codecov/codecov-ats@v0
env:
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 }}
17 changes: 12 additions & 5 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f7ef415

Please sign in to comment.