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