Skip to content

Commit c25262e

Browse files
committed
Upload coverage reports to Codecov
1 parent d52e7c7 commit c25262e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/.gitinclude

Whitespace-only changes.

.github/workflows/api.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: API workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
name: Test python API
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v2
12+
with:
13+
python-version: '3.12'
14+
- name: Install requirements
15+
run: pip install -r requirements.txt
16+
- name: Run tests and collect coverage
17+
run: pytest --cov=app --cov-report=xml
18+
- name: Upload coverage reports to Codecov with GitHub Action
19+
uses: codecov/codecov-action@v5
20+
env:
21+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)