File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Python Tests
2
2
3
- on : [pull_request]
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
4
8
5
9
jobs :
6
10
test :
@@ -28,12 +32,19 @@ jobs:
28
32
- name : Install additional dependencies
29
33
run : |
30
34
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
32
37
shell : bash -l {0}
33
38
34
39
# Run pytest on the specified directory
35
- - name : Run tests
40
+ - name : Test with pytest
36
41
run : |
37
- pytest tests
42
+ pytest --cov=src/tirmite --cov-branch --cov-report=xml
38
43
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
You can’t perform that action at this time.
0 commit comments