Skip to content

Commit

Permalink
step4: aggregate tests and split Component
Browse files Browse the repository at this point in the history
  • Loading branch information
NCherfaoui committed Feb 10, 2024
1 parent 0e3588f commit ae3c6a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
python-version: '3.11'
- 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@v3
12 changes: 11 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ component_management:
- 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
- api
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
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/

0 comments on commit ae3c6a5

Please sign in to comment.