Skip to content

Commit

Permalink
Update code-coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thivinanandh authored May 3, 2024
1 parent 1d242f8 commit 7619891
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libglu1-mesa
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install -e .
pip install pytest pytest-cov codecov
- name: Run tests and collect coverage
run: pytest --cov=api.calculator --cov-report=xml
run: python -m pytest --cov tests/ --cov-report=xml

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4.2.0
Expand Down

0 comments on commit 7619891

Please sign in to comment.