From 577ac00183eaa19ca8aff3c9fe8fe1fc74492a6b Mon Sep 17 00:00:00 2001 From: Adalene_codecov <152432831+Adal3n3@users.noreply.github.com> Date: Wed, 24 Apr 2024 09:37:18 -0700 Subject: [PATCH] Revert "step4: aggregate tests and split Component" --- .github/workflows/api.yml | 6 ++++-- codecov.yml | 12 ++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index be8023ca6..c42097cb5 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -13,8 +13,10 @@ jobs: python-version: '3.10' - name: Install requirements run: pip install -r api/requirements.txt - - name: Run tests and collect coverage - run: pytest --cov + - 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: 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 3518220c3..9ad2123e9 100644 --- a/codecov.yml +++ b/codecov.yml @@ -4,17 +4,13 @@ coverage: default: target: 100% threshold: 1% - + 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 + - component_id: api # this is an identifier that should not be changed + name: api # this is a display name, and can be changed freely 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 - paths: - - api/smiles/ \ No newline at end of file + - api \ No newline at end of file