diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index f2f4fe8..82dadff 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -8,6 +8,8 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Setup Python uses: actions/setup-python@v2 with: @@ -25,3 +27,9 @@ jobs: source .venv/bin/activate export DOCKER_BUILDKIT=1 pytest + pytest --cov=./ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 14e9a92..486f077 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![codecov](https://codecov.io/gh/max-pfeiffer/uvicorn-poetry-project-template/branch/main/graph/badge.svg?token=WQI2SJJLZN)](https://codecov.io/gh/max-pfeiffer/uvicorn-poetry-project-template) ![pipeline workflow](https://github.com/max-pfeiffer/uvicorn-poetry-project-template/actions/workflows/pipeline.yml/badge.svg) # uvicorn-poetry-project-template [Cookiecutter](https://github.com/cookiecutter/cookiecutter) project template for the