Skip to content

Commit

Permalink
Merge pull request #46 from Aritra8438/Add-codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Aritra8438 authored Jul 6, 2023
2 parents 197272f + 5efeb47 commit 570f2f8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Pytest

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -22,3 +22,11 @@ jobs:
pip install -r requirements.txt
- name: Run tests with pytest
run: pytest -s
- name: Get coverage report
run: |
pip install coverage
coverage run -m pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 570f2f8

Please sign in to comment.