Skip to content

Commit

Permalink
Create codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nneji123 authored Jan 7, 2024
1 parent e78b519 commit 8941a7f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: API Codecov workflow

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Test python API
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install requirements
run: pip install -r api/requirements.txt
- name: Run tests and collect coverage
run: pytest --cov=api.calculator --cov-report=xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3

0 comments on commit 8941a7f

Please sign in to comment.