diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..7a4ec7c --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,4 @@ +comment: false +coverage: + status: + project: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0e456b2..c91ef46 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,16 +38,11 @@ jobs: - name: Run type checking run: mypy . - - name: Download code coverage reporter and notify Code Climate of the build - run: | - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build - - name: Run tests - run: pytest --cov-report=xml + run: pytest --cov-branch --cov-report=xml - - name: Notify Code Climate that the build is done - env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - run: ./cc-test-reporter after-build --coverage-input-type=coverage.py --exit-code $? + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: sul-dlss/speech-to-text diff --git a/README.md b/README.md index 008c927..39f9e93 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # speech-to-text [![Test](https://github.com/sul-dlss/speech-to-text/actions/workflows/test.yml/badge.svg)](https://github.com/sul-dlss/speech-to-text/actions/workflows/test.yml) +[![codecov](https://codecov.io/gh/sul-dlss/speech-to-text/graph/badge.svg?token=SB8E3KXTJ1)](https://codecov.io/gh/sul-dlss/speech-to-text) This repository contains a Docker configuration for performing speech-to-text processing with [Whisper](https://openai.com/index/whisper/) using Amazon Web Services (AWS) to provision GPU resources on demand, and to tear them down when there is no more remaining work. It uses: