Skip to content

Commit

Permalink
exclude folder from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
feijooso committed Jun 25, 2024
1 parent 4187bd4 commit dd7707e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 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
- name: Run tests and generate coverage
run: |
source venv/bin/activate
pytest
pytest --cache-clear --cov=app/service app/tests/ --cov-report=xml > pytest-coverage.txt
pytest --cache-clear --cov=app/service --cov-report=xml --cov-exclude=app/service/rabbitmq
env:
USERS_SERVICE_URL: "https://users-hanagotchi-13b50c95f2c8.herokuapp.com/"
DATABASE_URL: "postgres://pepe"
Expand All @@ -45,13 +45,9 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
file: ./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 dd7707e

Please sign in to comment.