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
33 changes: 33 additions & 0 deletions .github/workflows/fetchers/youtube_data_api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run e2e tests for garf-youtube-data-api

on:
workflow_dispatch:

env:
UV_SYSTEM_PYTHON: 1

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.4"
enable-cache: true
- name: Install dependencies
run: |
uv pip install pytest
- name: Test ${{ matrix.library }}
run: |
cd libs/community/google/youtube/youtube-data-api/
uv pip install -e .
pytest tests/e2e
env:
GARF_YOUTUBE_DATA_API_KEY: ${{ secrets.GARF_YOUTUBE_DATA_API_KEY }}
YOUTUBE_ID: ${{ secrets.YOUTUBE_ID }}
27 changes: 0 additions & 27 deletions libs/community/google/youtube/youtube-data-api/test_youtube.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

dotenv.load_dotenv()

api_client = api_clients.YouTubeDataApiClient(
api_key=os.getenv('YOUTUBE_DATA_API_KEY')
)
api_client = api_clients.YouTubeDataApiClient()
fetcher = report_fetcher.YouTubeDataApiReportFetcher(api_client=api_client)


Expand Down
Loading