Skip to content

Commit

Permalink
Merge pull request #61 from RyouMon/build-cov
Browse files Browse the repository at this point in the history
Setup Codecov
  • Loading branch information
RyouMon authored Dec 2, 2024
2 parents 6c7fd1c + 1f27dfb commit b422694
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install flake8 pytest pytest-cov
python -m pip install -r requirements.txt
- name: Lint with flake8
run: |
Expand All @@ -39,8 +39,14 @@ jobs:
- name: Run Test
run: |
cd src
python -m pytest ../tests
python -m pytest ../tests --cov --cov-report=xml
mv .coverage ../.coverage
mv coverage.xml ../coverage.xml
- name: Check spiders contacts
run: |
cd src
scrapy check
scrapy check
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 7 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
comment:
layout: " diff, flags, files"
behavior: default
require_changes: false
require_base: false
require_head: true
hide_project_coverage: false

0 comments on commit b422694

Please sign in to comment.