From e66975e35095d60acd160a7e52f5ce687f8a3e56 Mon Sep 17 00:00:00 2001 From: Adalene_codecov <152432831+Adal3n3@users.noreply.github.com> Date: Wed, 24 Apr 2024 11:14:17 -0700 Subject: [PATCH] Revert "Revert "step4: aggregate tests and split Component"" --- .github/workflows/api.yml | 6 ++---- codecov.yml | 12 ++++++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index c42097cb5..be8023ca6 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -13,10 +13,8 @@ jobs: python-version: '3.10' - name: Install requirements run: pip install -r api/requirements.txt - - name: Run tests and collect coverage for calculator - run: pytest --cov=api.calculator --cov-report=xml:calculator-coverage.xml - - name: Run tests and collect coverage for smiles - run: pytest --cov=api.smiles --cov-report=xml:smiles-coverage.xml + - name: Run tests and collect coverage + run: pytest --cov - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v4.2.0 env: diff --git a/codecov.yml b/codecov.yml index 9ad2123e9..3518220c3 100644 --- a/codecov.yml +++ b/codecov.yml @@ -4,13 +4,17 @@ coverage: default: target: 100% threshold: 1% - + comment: layout: "condensed_header, diff, flags, components" component_management: individual_components: - - component_id: api # this is an identifier that should not be changed - name: api # this is a display name, and can be changed freely + - 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 paths: - - api \ No newline at end of file + - 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 + paths: + - api/smiles/ \ No newline at end of file