diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index edd2ebf..f3b3909 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,4 +23,8 @@ jobs: run: | python -m pip install poetry poetry install --with=test - poetry run pytest --cov --cov-report=term-missing + poetry run pytest --cov --cov-report=term-missing --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 2da2879..1422d35 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # pyautoenv +[![Build Status](https://github.com/hsaunders1904/pyautoenv/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/hsaunders1904/pyautoenv/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/hsaunders1904/pyautoenv/branch/main/graph/badge.svg?token=YABNBQOS1S)](https://codecov.io/gh/hsaunders1904/pyautoenv) + Automatically activate and deactivate Python environments as you move around the file system.