Skip to content

Commit

Permalink
try fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
feijooso committed Jun 25, 2024
1 parent dd7707e commit 71b8b0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- 'app/service/rabbitmq/*'
10 changes: 7 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Run tests and generate coverage
- name: Run tests
run: |
source venv/bin/activate
pytest
pytest --cache-clear --cov=app/service --cov-report=xml --cov-exclude=app/service/rabbitmq
pytest --cache-clear --cov=app/service app/tests/ --cov-report=xml > pytest-coverage.txt
env:
USERS_SERVICE_URL: "https://users-hanagotchi-13b50c95f2c8.herokuapp.com/"
DATABASE_URL: "postgres://pepe"
Expand All @@ -45,9 +45,13 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
files: ./coverage.xml
directory: ./coverage/reports/
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
path_to_write_report: ./coverage/codecov_report.txt
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 71b8b0e

Please sign in to comment.