File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 28
28
- name : Install dependencies
29
29
run : |
30
30
python -m pip install --upgrade pip
31
- python -m pip install flake8 pytest
31
+ python -m pip install flake8 pytest pytest-cov
32
32
python -m pip install -r requirements.txt
33
33
- name : Lint with flake8
34
34
run : |
39
39
- name : Run Test
40
40
run : |
41
41
cd src
42
- python -m pytest ../tests
42
+ python -m pytest ../tests --cov --cov-report=xml
43
+ mv .coverage ../.coverage
44
+ mv coverage.xml ../coverage.xml
43
45
- name : Check spiders contacts
44
46
run : |
45
47
cd src
46
- scrapy check
48
+ scrapy check
49
+ - name : Upload coverage reports to Codecov
50
+ uses : codecov/codecov-action@v5
51
+ with :
52
+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change
1
+ comment :
2
+ layout : " diff, flags, files"
3
+ behavior : default
4
+ require_changes : false
5
+ require_base : false
6
+ require_head : true
7
+ hide_project_coverage : false
You can’t perform that action at this time.
0 commit comments