diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4913888..9670f5f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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" @@ -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 }}