Skip to content

Commit dba8182

Browse files
committed
feat: added requirements installation
1 parent 4a22818 commit dba8182

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
python -m pip install --upgrade pip
4747
pip install -r requirements.txt
4848
pip install -r certificate_automation/requirements.txt
49+
pip install -r blog_automation/requirements.txt
4950
5051
- name: Run pytest
5152
run: |

tools/blog_automation/test_blog_exporter.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
import os
44
from pathlib import Path
55

6+
# This is an integration test: it needs the service account key and live Google
7+
# Drive access. Skip it when the key is absent (e.g. CI, where fork PRs cannot
8+
# access secrets) so it doesn't fail the suite.
9+
_SERVICE_ACCOUNT_KEY = Path(__file__).resolve().parent / "service_account_key.json"
10+
pytestmark = pytest.mark.skipif(
11+
not _SERVICE_ACCOUNT_KEY.exists(),
12+
reason="requires service_account_key.json and live Google Drive access",
13+
)
14+
615
@pytest.mark.parametrize(
716
"example_image",
817
[

0 commit comments

Comments
 (0)