Skip to content

Commit

Permalink
flagaroonies
Browse files Browse the repository at this point in the history
  • Loading branch information
nora-codecov committed Sep 12, 2024
1 parent 5030282 commit b369a78
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
- run:
name: Run tests and collect coverage
command: pytest --cov api.calculator
- codecov/upload
- codecov/upload:
flags: backend

test-frontend:
docker:
- image: cimg/node:17.6.0
Expand All @@ -27,7 +29,8 @@ jobs:
- run:
name: Run tests and collect coverage
command: cd web && npm run test
- codecov/upload
- codecov/upload:
flags: frontend

workflows:
version: 2.1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ jobs:
uses: codecov/codecov-action@v4.2.0
with:
use_oidc: true
flags: backend
1 change: 1 addition & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
uses: codecov/codecov-action@v4.2.0
with:
use_oidc: true
flags: frontend
31 changes: 16 additions & 15 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
coverage:
status:
project:
default:
target: 100%
threshold: 1%
project: off
patch: off

comment:
layout: "condensed_header, diff, flags, components"

component_management:
individual_components:
- component_id: api-calculator # this is an identifier that should not be changed
name: calculator # this is a display name, and can be changed freely
flag_management:
individual_flags:
- name: backend
paths:
- api/calculator/
- component_id: api-smiles # this is an identifier that should not be changed
name: smiles # this is a display name, and can be changed freely
- api/
statuses:
- type: project
target: 100%
threshold: 1%
- name: frontend
paths:
- api/smiles/
- web/
statuses:
- type: project
target: auto
threshold: 1%

0 comments on commit b369a78

Please sign in to comment.