Skip to content

Commit 4f78764

Browse files
Add Codecov workflow for testing and coverage
1 parent 5e325ee commit 4f78764

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/codecov.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run tests and upload coverage-Codecov
2+
3+
on:
4+
push
5+
6+
jobs:
7+
test:
8+
name: Run tests and collect coverage
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: "3.11" # ← Local makinenizde Python 3.12 kullanıyorsunuz
20+
21+
- name: Install dependencies
22+
run: |
23+
pip install pytest pytest-cov
24+
pip install -e .
25+
26+
- name: Run tests
27+
run: pytest tests/ --cov --cov-branch --cov-report=xml
28+
29+
- name: Upload results to Codecov
30+
uses: codecov/codecov-action@v5
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
slug: WhiteSymmetry/kha256

0 commit comments

Comments
 (0)