Skip to content

Commit

Permalink
Added Codecov Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
UmairK5669 committed Mar 14, 2024
1 parent 19d5fd2 commit 6d67c9f
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build-codecov-docs

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry lock --no-update
poetry install --with test
- name: Run tests and collect coverage
run: |
poetry shell
deactivate
poetry run pytest --cov app
exit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
90 changes: 88 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ click = "^8.1.7"

[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
pytest-cov = "^4.1.0"

[tool.poetry.group.docs.dependencies]
sphinx = "^7.2.6"
Expand Down

0 comments on commit 6d67c9f

Please sign in to comment.