Skip to content

Commit 4f6e489

Browse files
committed
Add cov reports
1 parent 63b34f8 commit 4f6e489

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/pytest.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Python Tests
22

3-
on: [pull_request]
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
48

59
jobs:
610
test:
@@ -28,12 +32,19 @@ jobs:
2832
- name: Install additional dependencies
2933
run: |
3034
conda install -y -c conda-forge -c bioconda mummer blast hmmer
31-
pip install '.[tests]' # Install all dependencies, including test-specific ones
35+
python -m pip install --upgrade pip
36+
pip install '.[dev]' # Install all dependencies, including test-specific ones
3237
shell: bash -l {0}
3338

3439
# Run pytest on the specified directory
35-
- name: Run tests
40+
- name: Test with pytest
3641
run: |
37-
pytest tests
42+
pytest --cov=src/tirmite --cov-branch --cov-report=xml
3843
shell: bash -l {0}
39-
44+
45+
# Upload coverage report to Codecov
46+
- name: Upload coverage reports to Codecov
47+
uses: codecov/codecov-action@v5
48+
with:
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
slug: Adamtaranto/TIRmite

0 commit comments

Comments
 (0)