Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "staging" ]

permissions:
contents: read
Expand All @@ -29,5 +29,7 @@ jobs:
run: |
pip3 install .
- name: Test the application
env:
BTC_TRANSCRIPTS_URL: ${{ secrets.BTC_TRANSCRIPTS_URL }}
run: |
pytest -v -s .
2 changes: 1 addition & 1 deletion app/transcription.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(
self.transcripts: list[Transcript] = []
self.existing_media = None
self.preprocessing_output = [] if batch_preprocessing_output else None
self.data_fetcher = DataFetcher(settings.BTC_TRANSCRIPTS_URL)
self.data_fetcher = None if test_mode else DataFetcher(settings.BTC_TRANSCRIPTS_URL)

self.logger.debug(f"Temp directory: {self.tmp_dir}")

Expand Down
Loading