Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "step4: aggregate tests and split Component" #12

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
env:
Expand Down
12 changes: 4 additions & 8 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
- api
Loading