diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..7cd470d --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,2 @@ +ignore: + - 'app/service/rabbitmq/*' \ No newline at end of file diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 9670f5f..4913888 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 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" @@ -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 }}