Skip to content

Commit

Permalink
Merge pull request #82 from sul-dlss/try-codecov
Browse files Browse the repository at this point in the history
try Codecov
  • Loading branch information
edsu authored Jan 31, 2025
2 parents 3b5d919 + d53c0ad commit 26fc976
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment: false
coverage:
status:
project: true
17 changes: 6 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:

Expand Down

0 comments on commit 26fc976

Please sign in to comment.