Skip to content

Commit 94235ac

Browse files
committed
fix evidently env setup
1 parent 27be90c commit 94235ac

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/generate_evidently_report.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ jobs:
2323
run: |
2424
uv sync --all-extras
2525
26-
- name: Authenticate with GCP
26+
- name: Setup Environment Variables
2727
env:
2828
GCP_SERVICE_ACCOUNT_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
2929
run: |
30+
echo "EVIDENTLY_PROJECT_ID=${{ secrets.EVIDENTLY_PROJECT_ID }}" >> $GITHUB_ENV
31+
echo "EVIDENTLY_API_TOKEN=${{ secrets.EVIDENTLY_API_TOKEN }}" >> $GITHUB_ENV
3032
echo "$GCP_SERVICE_ACCOUNT_KEY" > gcp-key.json
3133
gcloud auth activate-service-account --key-file=gcp-key.json
3234
export GOOGLE_APPLICATION_CREDENTIALS=gcp-key.json

scripts/1_load_monthly_data.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
import sys
32
from datetime import datetime, timedelta
43

54
import yaml
@@ -30,5 +29,5 @@
3029
data_checker.validate_schema(config.green_taxi_raw_schema)
3130
gcs_connector.upload(data, file_name)
3231
except Exception as e:
33-
logger.error(f"Data might not exist yet for {year}-{month:02d}. Error: {e}")
34-
sys.exit(1)
32+
logger.error(f"Data might not exist yet for {year}-{month:02d}. Skipping")
33+
raise e

0 commit comments

Comments
 (0)